Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

FSM Class Reference

This class implements a Finite State Machine (FSM). More...

#include <fsm.hpp>

Inheritance diagram for FSM:

SkinObject List of all members.

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)

Detailed Description

This class implements a Finite State Machine (FSM).

Definition at line 38 of file fsm.hpp.


Member Function Documentation

void FSM::handleTransition const string &  event  ) 
 

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().


The documentation for this class was generated from the following files:
Generated on Tue Dec 20 10:15:03 2005 for vlc-0.8.4a by  doxygen 1.4.2