FACT++  1.0
const string StateMachineImp::GetStateDescription ( int  state) const

This functions works in analogy to GetStateName, but the state number is added in []-parenthesis after the state name if it is available.

Parameters
stateThe state for which the name should be returned.
Returns
The state name as stored in fStateName is returned corresponding to the state given plus the state number added in []-parenthesis. If no name exists the number is returned as string.

Definition at line 733 of file StateMachineImp.cc.

References GetStateName(), and str.

Referenced by RemoteControl< Shell >::JsGetCurrentState().

734 {
735  const string &str = GetStateName(state);
736 
737  ostringstream s;
738  s << state;
739  if (str==s.str())
740  return str;
741 
742  return str.empty() ? s.str() : (str+'['+s.str()+']');
743 }
char str[80]
Definition: test_client.c:7
const std::string GetStateName() const

+ Here is the call graph for this function:

+ Here is the caller graph for this function: