39 lines
661 B
C++
39 lines
661 B
C++
/*
|
||
* ProbeSerialPortAdapter.hh
|
||
*
|
||
* Created on: 16 июл. 2022 г.
|
||
* Author: titov
|
||
*/
|
||
|
||
#ifndef UMLIBRARY_DRIVER_PROBESERIALPORTADAPTER_HH_
|
||
#define UMLIBRARY_DRIVER_PROBESERIALPORTADAPTER_HH_
|
||
|
||
#include "../systemic/IStatus.hh"
|
||
|
||
namespace driver {
|
||
|
||
struct ProbeSerialPortAdapter {
|
||
|
||
bool mStatus;
|
||
|
||
ProbeSerialPortAdapter() : mStatus(false) {}
|
||
|
||
ProbeSerialPortAdapter& operator= (const ProbeSerialPortAdapter&) {
|
||
mStatus = true; return *this;
|
||
}
|
||
|
||
void operator=( int rh ) {
|
||
mStatus = true;
|
||
}
|
||
void operator ++() {
|
||
mStatus = false;
|
||
}
|
||
|
||
};
|
||
|
||
}
|
||
|
||
|
||
|
||
#endif /* UMLIBRARY_DRIVER_PROBESERIALPORTADAPTER_HH_ */
|