FACT++  1.0
void DimNetwork::RemoveServer ( std::string  s)
protectedvirtual

Removes the StateClient for the given server. Don't forget to call this function if it is overwritten in a derived class.

Parameters
sserver which should be removed
Exceptions
aruntime_error is the server to be removed is not in the list

Reimplemented from DimServiceInfoListImp.

Definition at line 99 of file DimNetwork.cc.

References DimServiceInfoListImp::RemoveServer().

100 {
102  if (s=="DIM_DNS")
103  return;
104 
105  const ClientList::iterator v = fClientList.find(s);
106  if (v==fClientList.end())
107  {
108  stringstream err;
109  err << "Server '" << s << "' not in list as it ought to be.";
110  throw runtime_error(err.str());
111  }
112 
113  // Remove the server from the server list
114  delete v->second;
115 
116  fClientList.erase(v);
117 }
virtual void RemoveServer(std::string s)
ClientList fClientList
Definition: DimNetwork.h:69

+ Here is the call graph for this function: