/* * ControlStateIdle.h * * Created on: 31 рту. 2019 у. * Author: titov */ #ifndef SOURCE_TECHNOLOGICAL_DRIVECONTROL_CONTROLSTATEIDLE_H_ #define SOURCE_TECHNOLOGICAL_DRIVECONTROL_CONTROLSTATEIDLE_H_ #include "../IExecutorState.hh" namespace technological { namespace drivecontrol { struct ControlStateIdle : public IExecutorState { bool on_entry() { return true; } bool execute( CommandCode code, const char * args, std::size_t size ); CommandCode isComplite() const { return self_code; } void reset() {} void on_exit() {} ControlStateIdle( CommandCode self_code ); private: const CommandCode self_code; }; }} #endif /* SOURCE_TECHNOLOGICAL_DRIVECONTROL_CONTROLSTATEIDLE_H_ */