39 lines
657 B
C++
39 lines
657 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_ */
|