FACT++  1.0
const string StateMachineImp::GetStateName ( int  state) const
Parameters
stateThe state for which the name should be returned.
Returns
The state name as stored in fStateNames is returned, corresponding to the state given. If no name exists the number is returned as string.

Definition at line 684 of file StateMachineImp.cc.

References fStateNames, and i.

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

685 {
686  const StateNames::const_iterator i = fStateNames.find(state);
687  return i==fStateNames.end() || i->second.first.empty() ? to_string(state) : i->second.first;
688 }
int i
Definition: db_dim_client.c:21
int64_t second
offset of this column in the tile, from the start of the heap area
Definition: zofits.h:27
int64_t first
Size of this column in the tile.
Definition: zofits.h:26
StateNames fStateNames
Human readable names associated with the states.

+ Here is the caller graph for this function: