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

Definition at line 1139 of file fadctrl.cc.

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

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

1140  {
1141  if (!CheckEventSize(evt.GetSize(), "RemoveSlot", 2))
1142  return T::kSM_FatalError;
1143 
1144  const int16_t slot = evt.GetShort();
1145 
1146  const BoardList::iterator it = GetSlot(slot);
1147 
1148  if (it==fBoards.end())
1149  return T::GetCurrentState();
1150 
1151  ConnectSlot(slot, tcp::endpoint());
1152 
1153  delete it->second;
1154  fBoards.erase(it);
1155 
1156  return T::GetCurrentState();
1157  }
void ConnectSlot(unsigned int i, const tcp::endpoint &addr)
BoardList fBoards
Definition: fadctrl.cc:555
const BoardList::iterator GetSlot(uint16_t slot)
Definition: fadctrl.cc:936
int16_t GetShort() const
Definition: EventImp.h:91
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: