MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/driver/IDiscreteOutput.cpp

22 lines
367 B
C++
Raw Normal View History

2024-06-07 11:12:56 +03:00
/*
* IDiscreteOutput.cpp
*
* Created on: 29 нояб. 2018 г.
* Author: titov
*/
#include "IDiscreteOutput.hh"
driver::IDiscreteOutput & driver::getDummyOutput() {
static class DiscreteOutputDummy : public IDiscreteOutput {
void on() {}
void off() {}
bool isOn() const { return false; }
} dummy;
return dummy;
};