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

30 lines
459 B
C++
Raw Permalink Normal View History

2024-06-07 11:12:56 +03:00
/*
* IDiscreteOutput.h
*
* Created on: 17 авг. 2017 г.
* Author: titov
*/
#ifndef SOURCE_DRIVER_IDISCRETEOUTPUT_H_
#define SOURCE_DRIVER_IDISCRETEOUTPUT_H_
namespace driver {
class IDiscreteOutput {
public:
virtual void on() = 0;
virtual void off() = 0;
virtual bool isCompleted() const { return true; }
virtual ~IDiscreteOutput() noexcept {}
};
IDiscreteOutput & getDummyOutput();
}
#endif /* SOURCE_DRIVER_IDISCRETEOUTPUT_H_ */