FACT++  1.0
int DataLogger::SetRunTimeoutDelay ( const Event evt)
private

set the timeout delay for old run numbers

Parameters
evtthe current event. contains the timeout delay long value
Returns
the new state. Which, in that case, is the current state

Definition at line 1754 of file datalogger.cc.

References MessageImp::Error(), StateMachineImp::GetCurrentState(), EventImp::GetUInt(), MessageImp::Message(), and str.

Referenced by DataLogger().

1755 {
1756  if (evt.GetUInt() == 0)
1757  {
1758  Error("Timeout delays for old run numbers must be greater than 0... ignored.");
1759  return GetCurrentState();
1760  }
1761 
1762  if (fRunNumberTimeout == evt.GetUInt())
1763  Message("New timeout for old run numbers is same value as previous one.");
1764 
1765  fRunNumberTimeout = evt.GetUInt();
1766 
1767  ostringstream str;
1768  str << "Timeout delay for old run numbers is now " << fRunNumberTimeout << " ms";
1769  Message(str);
1770 
1771  return GetCurrentState();
1772 }
int GetCurrentState() const
return the current state of the machine
char str[80]
Definition: test_client.c:7
uint32_t fRunNumberTimeout
old run numbers time-out delay (in seconds)
Definition: datalogger.cc:213
int Error(const std::string &str)
Definition: MessageImp.h:49
uint32_t GetUInt() const
Definition: EventImp.h:94
int Message(const std::string &str)
Definition: MessageImp.h:46

+ Here is the call graph for this function:

+ Here is the caller graph for this function: