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

Definition at line 949 of file fadctrl.cc.

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

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

950  {
951  if (!CheckEventSize(evt.GetSize(), "PrintEvent", 2))
952  return T::kSM_FatalError;
953 
954  const int16_t slot = evt.Get<int16_t>();
955 
956  if (slot<0)
957  {
958  for (BoardList::iterator i=fBoards.begin(); i!=fBoards.end(); i++)
959  i->second->PrintEvent();
960  }
961  else
962  {
963  const BoardList::iterator it=GetSlot(slot);
964  if (it!=fBoards.end())
965  it->second->PrintEvent();
966  }
967 
968  return T::GetCurrentState();
969  }
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
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: