#include <fsm.hpp>
Inheritance diagram for FSM:

Public Member Functions | |
| void | addState (const string &state) |
| Add a state to the machine. | |
| void | addTransition (const string &state1, const string &event, const string &state2, CmdGeneric *pCmd=NULL) |
| Add a transition to the machine. | |
| const string & | getState () const |
| Retrieve the current state. | |
| void | setState (const string &state) |
| Set the current state, without bothering about transitions. | |
| void | handleTransition (const string &event) |
Definition at line 38 of file fsm.hpp.
|
|
Find a transition from the current state with the input event, change the state, and call the associated callback (if any). Definition at line 72 of file fsm.cpp. References CmdGeneric::execute(). Referenced by CtrlText::handleEvent(), CtrlSliderCursor::handleEvent(), CtrlResize::handleEvent(), CtrlRadialSlider::handleEvent(), CtrlMove::handleEvent(), CtrlCheckbox::handleEvent(), and CtrlButton::handleEvent(). |
1.4.2