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

Definition at line 1003 of file fadctrl.cc.

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

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

1004  {
1005  if (!CheckEventSize(evt.GetSize(), "SetIgnoreSlot", 3))
1006  return T::kSM_FatalError;
1007 
1008  const uint16_t slot = evt.Get<uint16_t>();
1009 
1010  if (slot>39)
1011  {
1012  T::Warn("Slot out of range (0-39).");
1013  return T::GetCurrentState();
1014  }
1015 
1016  SetIgnore(slot, evt.Get<uint8_t>(2));
1017 
1018  return T::GetCurrentState();
1019  }
T Get(size_t offset=0) const
Definition: EventImp.h:66
void SetIgnore(int i, bool b) const
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: