Plusieurs développements, dont l'implémentation du endian Intel
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#include "CANWatchdogConfig.h"
|
||||
|
||||
CCANWatchdogConfig::CCANWatchdogConfig()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CCANWatchdogConfig& CCANWatchdogConfig::operator=(const CCANWatchdogConfig &source)
|
||||
{
|
||||
if(&source == this)
|
||||
return *this;
|
||||
|
||||
this->mCANDeviceID = source.mCANDeviceID;
|
||||
this->mCANDeviceBaudrate = source.mCANDeviceBaudrate;
|
||||
this->mWatchdogTimeout = source.mWatchdogTimeout;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
QDataStream &operator>>(QDataStream &in, CCANWatchdogConfig &dest)
|
||||
{
|
||||
in >> dest.mCANDeviceID
|
||||
>> dest.mCANDeviceBaudrate
|
||||
>> dest.mWatchdogTimeout;
|
||||
return in;
|
||||
}
|
||||
QDataStream &operator<<(QDataStream &out, const CCANWatchdogConfig &source)
|
||||
{
|
||||
out << source.mCANDeviceID
|
||||
<< source.mCANDeviceBaudrate
|
||||
<< source.mWatchdogTimeout;
|
||||
return out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user