FACT++  1.0
int StateMachineSmartFACT::HandleDoTest ( const EventImp d)
inlineprivate

Definition at line 2166 of file smartfact.cc.

References EventImp::GetJavaDate(), EventImp::GetQoS(), HTML::kBlue, HTML::kGreen, StateMachineImp::kSM_KeepState, and HTML::kWhite.

Referenced by StateMachineSmartFACT().

2167  {
2168  ostringstream out;
2169  out << d.GetJavaDate() << '\n';
2170 
2171  switch (d.GetQoS())
2172  {
2173  case -3: out << HTML::kWhite << "\tNot running\n"; break;
2174  case -2: out << HTML::kBlue << "\tLoading\n"; break;
2175  case -1: out << HTML::kBlue << "\tStarted\n"; break;
2176  default: out << HTML::kGreen << "\tRunning [" << d.GetQoS() << "]\n"; break;
2177  }
2178 
2179  ofstream(fPath+"/dotest.data") << out.str();
2180 
2182  }
static const string kBlue
Definition: smartfact.cc:78
static const string kWhite
Definition: smartfact.cc:74
virtual int GetQoS() const
Definition: EventImp.h:58
uint64_t GetJavaDate() const
Definition: EventImp.cc:303
static const string kGreen
Definition: smartfact.cc:77

+ Here is the call graph for this function:

+ Here is the caller graph for this function: