22 lines
362 B
C++
22 lines
362 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;
|
|
};
|
|
|
|
|