FACT++  1.0
void StateMachineImp::PrintListOfStates ( std::ostream &  out) const

Print a list of all states with descriptions.

Parameters
outostream to which the output should be redirected

Definition at line 449 of file StateMachineImp.cc.

References fStateNames, i, kBlue, kBold, kReset, and kYellow.

Referenced by LocalControl< ConsoleStream >::Process().

450 {
451  out << endl;
452  out << kBold << "List of available states:" << endl;
453  for (StateNames::const_iterator i=fStateNames.begin(); i!=fStateNames.end(); i++)
454  {
455  ostringstream state;
456  state << i->first;
457  out << " -[" << kBold << state.str() << kReset << "]:" << setfill(' ') << setw(6-state.str().length()) << ' ' << kYellow << i->second.first << kBlue << " (" << i->second.second << ")" << endl;
458  }
459  out << endl;
460 }
int i
Definition: db_dim_client.c:21
Set color Yellow.
Definition: WindowLog.h:19
Set color Blue.
Definition: WindowLog.h:20
StateNames fStateNames
Human readable names associated with the states.
Reset all attributes.
Definition: WindowLog.h:29
Set attribute Bold.
Definition: WindowLog.h:36

+ Here is the caller graph for this function: