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

set the number of subscriptions and opened fits on and 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 1731 of file datalogger.cc.

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

Referenced by DataLogger().

1732 {
1733  const bool backupSubs = fNumSubAndFitsIsOn;
1734 
1735  fNumSubAndFitsIsOn = evt.GetBool();
1736 
1737  if (fNumSubAndFitsIsOn == backupSubs)
1738  Message("Number of subscriptions service mode was already in the requested state");
1739 
1740  ostringstream str;
1741  str << "Number of subscriptions service mode is now " << fNumSubAndFitsIsOn;
1742  Message(str);
1743 
1744  return GetCurrentState();
1745 }
int GetCurrentState() const
return the current state of the machine
char str[80]
Definition: test_client.c:7
bool fNumSubAndFitsIsOn
Definition: datalogger.cc:317
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: