22 lines
362 B
C++
22 lines
362 B
C++
|
|
/*
|
|||
|
|
* IDiscreteOutput.cpp
|
|||
|
|
*
|
|||
|
|
* Created on: 29 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. 2018 <EFBFBD>.
|
|||
|
|
* 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;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
|