Template Class hfsm_state_action1
Defined in File hfsm_state.hpp
Inheritance Relationships
Base Type
public rcppsw::patterns::fsm::hfsm_state
(Class hfsm_state)
Class Documentation
-
template<class FSM, class Event, int (FSM::* Handler)(Event*)>
class hfsm_state_action1 : public rcppsw::patterns::fsm::hfsm_state - Template Parameters:
FSM – The current state machine class.
Event – A state function event data type (derived from event).
Handler – A state machine member function pointer, that takes ONE argument.
Public Functions
-
inline explicit hfsm_state_action1(hfsm_state *parent)
-
~hfsm_state_action1() override = default
-
inline virtual int invoke_state_action(base_fsm *fsm, event_data *event) const override
Called by the state machine engine to execute a state action. If a guard condition exists and it evaluates to false, the state action will not execute.
- Parameters:
sm – A state machine instance.
data – The event data.
- Returns:
integer indicating whether or not the event was handled.