YULTek/Otarcik_CAN/Sources/GeneralSystemParams.cpp

37 lines
757 B
C++

#include "GeneralSystemParams.h"
CGeneralSystemParams::CGeneralSystemParams()
{
mLocalLogVerbosity = 1;
mLogFileVerbosity = 0;
}
QDataStream &operator>>(QDataStream &in, CGeneralSystemParams &dest)
{
in >> dest.mLocalLogVerbosity
>> dest.mLogFileVerbosity;
return in;
}
QDataStream &operator<<(QDataStream &out, const CGeneralSystemParams &source)
{
out << source.mLocalLogVerbosity
<< source.mLogFileVerbosity;
return out;
}
CGeneralSystemParams& CGeneralSystemParams::operator=(const CGeneralSystemParams &source)
{
if(&source == this)
{
return *this;
}
this->mLocalLogVerbosity = source.mLocalLogVerbosity;
this->mLogFileVerbosity = source.mLogFileVerbosity;
return *this;
}