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

Definition at line 1117 of file fadctrl.cc.

References EventImp::GetText(), i, and Tools::Trim().

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

1118  {
1119  const string addr = Tools::Trim(evt.GetText());
1120 
1121  const tcp::endpoint endpoint = GetEndpoint(addr);
1122  if (endpoint==tcp::endpoint())
1123  return T::GetCurrentState();
1124 
1125  for (BoardList::const_iterator i=fBoards.begin(); i!=fBoards.end(); i++)
1126  {
1127  if (i->second->GetEndpoint()==endpoint)
1128  {
1129  T::Warn("Address "+addr+" already known.... ignored.");
1130  return T::GetCurrentState();
1131  }
1132  }
1133 
1134  AddEndpoint(endpoint);
1135 
1136  return T::GetCurrentState();
1137  }
const char * GetText() const
Definition: EventImp.h:88
BoardList fBoards
Definition: fadctrl.cc:555
int i
Definition: db_dim_client.c:21
void AddEndpoint(const tcp::endpoint &addr)
Definition: fadctrl.cc:1614
std::string Trim(const std::string &str)
Definition: tools.cc:68
tcp::endpoint GetEndpoint(const string &base)
Definition: fadctrl.cc:1966

+ Here is the call graph for this function:

+ Here is the caller graph for this function: