FACT++  1.0
void DataLogger::RemoveAllServices ( const string &  server)
private

Remove all the services associated with a given server.

Remove all the services associated with a given server

Parameters
serverthe server for which all the services should be removed

Definition at line 698 of file datalogger.cc.

References Debug, and NumSubAndFitsType::numSubscriptions.

699 {
700  Info("Got request for removing all services from: "+server);
701  if (fServiceSubscriptions.find(server)==fServiceSubscriptions.end())
702  {
703  Warn("Request to remove all services, but corresponding server " + server + " not found.");
704  return;
705  }
706 //FIXME unused
707  return;
709 
710  fServiceSubscriptions[server].clear();
711  fServiceSubscriptions.erase(server);
712 
713  if (server == "FAD_CONTROL")
714  fRunNumberService = 0;
715 
716  if (fDebugIsOn)
717  Debug("Removed all subscriptions to " + server + "/");
718 }
uint32_t numSubscriptions
Definition: datalogger.cc:96
int Debug(const std::string &str)
Definition: MessageImp.h:45
bool fDebugIsOn
configuration flags
Definition: datalogger.cc:315
unsigned int fRunNumberService
pointer to the dim's subscription that should distribute the run numbers.
Definition: datalogger.cc:387
int Warn(const std::string &str)
Definition: MessageImp.h:48
SubscriptionsListType fServiceSubscriptions
All the services to which we have subscribed to, sorted by server name.
Definition: datalogger.cc:224
NumSubAndFitsType fNumSubAndFitsData
Definition: datalogger.cc:294
int Info(const std::string &str)
Definition: MessageImp.h:47