rtspserver
Class StateMachine


class StateMachine


Destructor Summary
 virtual ~StateMachine()
          destructor

Method Summary
 voiddestroy()
          frees the memory associated with singelton instance
 SptrfindState(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 * constname()
          return name of state machine
 Sptrprocess(const Sptr currentState, const Sptr event)
          process one transition in a state machine

Method Detail

~StateMachine

public virtual ~StateMachine()
destructor
Method Detail

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

Association Links

to Class StateMachine

singelton object

Hyperlinks

to State Diagram RTSP Server State Machine

to State Diagram RTSP Server State Machine