MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/technological/drivecontrol/ControlStateActions.hh
2024-06-07 11:12:56 +03:00

39 lines
891 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* ControlStateActions.hh
*
* Created on: 23 окт. 2022 г.
* Author: titov
*/
#ifndef UMLIBRARY_TECHNOLOGICAL_DRIVECONTROL_CONTROLSTATEACTIONS_HH_
#define UMLIBRARY_TECHNOLOGICAL_DRIVECONTROL_CONTROLSTATEACTIONS_HH_
#include "../IExecutorState.hh"
#include "../../systemic/IFunctor.hh"
namespace technological { namespace drivecontrol {
struct ControlStateActions : public IExecutorState {
typedef systemic::IFunctor<void> Action;
bool on_entry();
bool execute( CommandCode code, const char * args, std::size_t size );
CommandCode isComplite() const;
void reset();
void on_exit();
ControlStateActions( IExecutorState & state, Action & do_entry, Action & do_exit );
private:
IExecutorState & state;
Action & entry_action;
Action & exit_action;
};
}}
#endif /* UMLIBRARY_TECHNOLOGICAL_DRIVECONTROL_CONTROLSTATEACTIONS_HH_ */