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

Definition at line 985 of file fadctrl.cc.

References EventImp::Get(), EventImp::GetSize(), i, and EventImp::Ptr().

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

986  {
987  if (!CheckEventSize(evt.GetSize(), "SetBlockTransmissionRange", 5))
988  return T::kSM_FatalError;
989 
990  const int16_t *slot = evt.Ptr<int16_t>();
991  const bool block = evt.Get<uint8_t>(4);
992 
993  for (int i=slot[0]; i<=slot[1]; i++)
994  {
995  const BoardList::iterator it=GetSlot(i);
996  if (it!=fBoards.end())
997  it->second->SetBlockTransmission(block);
998  }
999 
1000  return T::GetCurrentState();
1001  }
BoardList fBoards
Definition: fadctrl.cc:555
int i
Definition: db_dim_client.c:21
const BoardList::iterator GetSlot(uint16_t slot)
Definition: fadctrl.cc:936
T Get(size_t offset=0) const
Definition: EventImp.h:66
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: fadctrl.cc:562
const T * Ptr(size_t offset=0) const
Definition: EventImp.h:74
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: