43 inline bool operator==(
const eObrd_canmonitor_cfg_t &right,
const eObrd_canmonitor_cfg_t &left)
45 if (right.periodofcheck != left.periodofcheck)
47 if (right.reportmode != left.reportmode)
49 if (right.periodofreport != left.periodofreport)
54 inline bool operator==(
const eObrd_firmwareversion_t &right,
const eObrd_firmwareversion_t &left)
56 if (right.major != left.major)
58 if (right.minor != left.minor)
60 if (right.build != left.build)
65 inline bool operator!=(
const eObrd_firmwareversion_t &right,
const eObrd_firmwareversion_t &left)
67 return !(right == left);
70 inline bool operator==(
const eObrd_protocolversion_t &right,
const eObrd_protocolversion_t &left)
72 if (right.major != left.major)
74 if (right.minor != left.minor)
79 inline bool operator!=(
const eObrd_protocolversion_t &right,
const eObrd_protocolversion_t &left)
81 return !(right == left);
84 inline bool operator==(
const eObrd_canlocation_t &right,
const eObrd_canlocation_t &left)
86 if (right.port != left.port)
88 if (right.addr != left.addr)
90 if (right.insideindex != left.insideindex)
96 inline bool operator!=(
const eObrd_canlocation_t &right,
const eObrd_canlocation_t &left)
98 return !(right == left);
101 inline bool operator==(
const eOas_ft_sensordescriptor_t &right,
const eOas_ft_sensordescriptor_t &left)
103 if (right.boardinfo.type != left.boardinfo.type)
105 if (right.boardinfo.protocol != left.boardinfo.protocol)
107 if (right.boardinfo.firmware != left.boardinfo.firmware)
109 if (right.canloc != left.canloc)
114 inline bool operator!=(
const eOas_ft_sensordescriptor_t &right,
const eOas_ft_sensordescriptor_t &left)
116 return !(right == left);
118 inline bool operator!=(
const eOas_ft_config_t &right,
const eOas_ft_config_t &left)
120 if (right.mode != left.mode)
122 if (right.ftperiod != left.ftperiod)
124 if (right.calibrationset != left.calibrationset)
126 if (right.temperatureperiod != left.temperatureperiod)
130 inline bool operator==(
const eOas_battery_sensordescriptor_t &right,
const eOas_battery_sensordescriptor_t &left)
132 if (right.boardinfo.type != left.boardinfo.type)
134 if (right.boardinfo.protocol != left.boardinfo.protocol)
136 if (right.boardinfo.firmware != left.boardinfo.firmware)
138 if (right.canloc != left.canloc)
143 inline bool operator!=(
const eOas_battery_sensordescriptor_t &right,
const eOas_battery_sensordescriptor_t &left)
145 return !(right == left);
148 inline bool operator!=(
const eOas_battery_config_t &right,
const eOas_battery_config_t &left)
150 if (right.period != left.period)
ServiceParserCanBattery_mock()
virtual bool checkSettings(const Bottle &settings)
virtual bool checkPropertySensors(const Bottle &property)
virtual eObrd_type_t checkBoardType(const std::string &boardType)
virtual bool checkServiceType(const Bottle &service)
virtual bool checkPropertyCanBoards(const Bottle &bPropertiesCanBoards)
ServiceParserMultipleFt_mock()
eObrd_canmonitor_cfg_t canMonitor_
virtual eObrd_type_t checkBoardType(const std::string &boardType)
virtual bool checkCanMonitor(const Bottle &service)
virtual bool checkPropertyCanBoards(const Bottle &bPropertiesCanBoards)
virtual bool checkSettings(const Bottle &settings)
virtual bool checkPropertySensors(const Bottle &property)
std::map< std::string, FtInfo > ftInfo_
virtual bool checkServiceType(const Bottle &service)
bool operator==(const eObrd_canmonitor_cfg_t &right, const eObrd_canmonitor_cfg_t &left)
bool operator!=(const eObrd_firmwareversion_t &right, const eObrd_firmwareversion_t &left)