36 lines
775 B
C++
36 lines
775 B
C++
#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;
|
|
}
|
|
|
|
|