6 /* forward declaration */
11 * FSM base class. Holds the current and the history state and allows
12 * state transitions. Transitions are logged in debug loglevel.
20 * \param name the name of the state machine
22 scd_cont_fsm(const std::string& name): _name(name) {}
24 virtual ~scd_cont_fsm() {}
27 * Sets a new state. This is a state transition.
29 void set_state(scd_cont_state& state);
32 * Saves the current state as the history state. This is not a state
38 * Saves a specified state as the history state. This is not a state
41 void save_state(scd_cont_state& state);
44 * Restores the saved history state. This is a state transition.
49 scd_cont_state* _state;
50 scd_cont_state* _hist_state;