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

Definition at line 375 of file pwrctrl.cc.

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

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

376  {
377  if (!CheckEventSize(evt.GetSize(), "SetCameraPower", 1))
378  return T::kSM_FatalError;
379 
380  fLastCommand = Time();
381  fPower.Post(evt.GetBool() ? "cam_on=Camera+ON" : "cam_off=Camera+OFF");
382  return T::GetCurrentState();
383  }
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: pwrctrl.cc:338
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: