FACT++  1.0
template<class T>
int StateMachineFAD< T >::SendCmd ( const EventImp evt)
inlineprivate

Definition at line 581 of file fadctrl.cc.

References EventImp::GetSize(), EventImp::GetUInt(), and i.

Referenced by StateMachineFAD< T >::StateMachineFAD().

582  {
583  if (!CheckEventSize(evt.GetSize(), "SendCmd", 4))
584  return T::kSM_FatalError;
585 
586  if (evt.GetUInt()>0xffff)
587  {
588  T::Warn("Command value out of range (0-65535).");
589  return T::GetCurrentState();
590  }
591 
592  for (BoardList::iterator i=fBoards.begin(); i!=fBoards.end(); i++)
593  i->second->PostCmd(evt.GetUInt());
594 
595  return T::GetCurrentState();
596  }
BoardList fBoards
Definition: fadctrl.cc:555
int i
Definition: db_dim_client.c:21
uint32_t GetUInt() const
Definition: EventImp.h:94
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: fadctrl.cc:562
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: