22 lines
367 B
C++
22 lines
367 B
C++
/*
|
||
* 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;
|
||
};
|
||
|
||
|