FACT++  1.0
template<class T , class S >
int StateMachineBias< T, S >::SetExpertMode ( const EventImp evt)
inlineprivate

Definition at line 1912 of file biasctrl.cc.

References EventImp::GetBool(), and EventImp::GetSize().

Referenced by StateMachineBias< T, S >::StateMachineBias().

1913  {
1914  if (!CheckEventSize(evt.GetSize(), "SetExpertMode", 1))
1915  return T::kSM_FatalError;
1916 
1917  fExpertMode = evt.GetBool();
1918 
1919  if (fExpertMode)
1920  T::Warn("Expert commands enabled -- please ensure that you EXACTLY know what you do. These commands can destroy the system.");
1921 
1922  return T::GetCurrentState();
1923  }
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: biasctrl.cc:1639
bool GetBool() const
Definition: EventImp.h:90
virtual size_t GetSize() const
Definition: EventImp.h:55

+ Here is the call graph for this function:

+ Here is the caller graph for this function: