rtspserver
Class StateMachine
- class StateMachine
Method Summary |
void | destroy() frees the memory associated with singelton instance |
Sptr | findState(const string stateName, const bool noprint) return a sptr to a state in the state machine based on state name |
static StateMachine & | instance() create a singelton object |
const const char * const | name() return name of state machine |
Sptr | process(const Sptr currentState, const Sptr event) process one transition in a state machine |
~StateMachine
public virtual ~StateMachine()
- destructor
destroy
public void destroy()
- frees the memory associated with singelton instance
findState
public Sptr findState(const string stateName, const bool noprint)
- return a sptr to a state in the state machine based on state name
- Parameters:
- stateName - name to lookup
- noprint - true not to print anything debug information
- Returns: state found based on state name
instance
public static StateMachine & instance()
- create a singelton object
name
public const const char * const name()
- return name of state machine
process
public Sptr process(const Sptr currentState, const Sptr event)
- process one transition in a state machine
- Parameters:
- currentState - starting state
- event - event to process
- Returns: next state
to Class StateMachine- singelton object
to State Diagram RTSP Server State Machine
to State Diagram RTSP Server State Machine