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

set the opened files service on or off.

Parameters
evtthe current event. contains the instruction string. similar to setdebugonoff
Returns
the new state. Which, in that case, is the current state

Definition at line 1707 of file datalogger.cc.

References fOpenedFilesIsOn, EventImp::GetBool(), StateMachineImp::GetCurrentState(), MessageImp::Message(), and str.

Referenced by DataLogger().

1708 {
1709  const bool backupOpened = fOpenedFilesIsOn;
1710 
1711  fOpenedFilesIsOn = evt.GetBool();
1712 
1713  if (fOpenedFilesIsOn == backupOpened)
1714  Message("Opened files service mode was already in the requested state.");
1715 
1716  ostringstream str;
1717  str << "Opened files service mode is now " << fOpenedFilesIsOn;
1718  Message(str);
1719 
1720  return GetCurrentState();
1721 }
int GetCurrentState() const
return the current state of the machine
char str[80]
Definition: test_client.c:7
bool fOpenedFilesIsOn
Definition: datalogger.cc:316
bool GetBool() const
Definition: EventImp.h:90
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: