MotorControlModuleSDFM_TMS3.../Projects/EFC_Application/UMLibrary/technological/drivecontrol/ControlStateIdle.hh

32 lines
725 B
C++

/*
* 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_ */