Define RCPPSW_HFSM_STATE_DECLARE
Defined in File hfsm.hpp
Define Documentation
-
RCPPSW_HFSM_STATE_DECLARE(FSM, state_name, event_data)
Declare a state in the current HFSM.
The state handler function MUST be public in order for hfsm_state_action1 templating to work. Apparently when dealing with non-type template arguments, any argument passed that does not EXACTLY match the one in the template will cause a compilation error if the function is protected (i.e. accessible in derived classes). The solution: make it public. Not the best, because it exposes the inner workings of the state machine, but anyone who is using this class should only be manipulating it through the macros anyway.