32 lines
725 B
C++
32 lines
725 B
C++
|
|
/*
|
|||
|
|
* ControlStateIdle.h
|
|||
|
|
*
|
|||
|
|
* Created on: 31 <EFBFBD><EFBFBD><EFBFBD>. 2019 <EFBFBD>.
|
|||
|
|
* 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_ */
|