FACT++  1.0
int StateMachineDimControl::ChangeState ( int  qos,
const Time time,
int  scriptdepth,
std::string  scriptfile,
std::string  user 
)

Definition at line 36 of file StateMachineDimControl.cc.

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

37 {
38  string msg;
39  /*
40  switch (qos)
41  {
42  case -4: msg = "End"; break;
43  case -3: msg = "Loading"; break;
44  case -2: msg = "Compiling"; break;
45  case -1: msg = "Running"; break;
46  default:
47  {
48  ostringstream out;
49  out << "Label " << qos;
50  msg = out.str();
51  }
52  }
53  */
54 
55  //if (qos<0)
56  msg += to_string(scriptdepth);
57 
58  msg += ":"+scriptfile+"["+user+":"+to_string(getpid())+"]";
59 
60  //if (fDebug)
61  //Write(time, Line(msg, qos<-1 ? '=' :'-'), MessageImp::kInternal);
62 
63  if (qos==-4)
65 
66  SetCurrentState(qos+4, msg.c_str());
67  //SetCurrentState(qos+4, Line(msg, qos<-1 ? '=' :'-').c_str());
68  return GetCurrentState();
69 
70  //return qos+4;
71 }
int GetCurrentState() const
return the current state of the machine
uint16_t qos
Definition: HeadersGPS.h:29
std::string SetCurrentState(int state, const char *txt="", const std::string &cmd="")

+ Here is the caller graph for this function: