FACT++  1.0
int DataLogger::HandleDescriptions ( DimDescriptions desc)
private

the two methods below were copied from StateMachineDimControl.cc

Definition at line 415 of file datalogger.cc.

References Debug, and DimDescriptions::descriptions.

Referenced by AddServer().

416 {
417  fMutex.lock();
418  for (auto it=desc->descriptions.begin(); it != desc->descriptions.end(); it++) {
419  if (fDebugIsOn)
420  {
421  Debug("Adding description for service: " + it->front().name);
422  }
423  fServiceDescriptionList[it->front().name].assign(it->begin(), it->end());
424  }
425  fMutex.unlock();
426 
427  return GetCurrentState();
428 }
int GetCurrentState() const
return the current state of the machine
int Debug(const std::string &str)
Definition: MessageImp.h:45
bool fDebugIsOn
configuration flags
Definition: datalogger.cc:315
map< string, vector< Description > > fServiceDescriptionList
map and mutex for storing services description
Definition: datalogger.cc:238
std::vector< std::vector< Description > > descriptions
Definition: DimState.h:187
mutex fMutex
Definition: datalogger.cc:239

+ Here is the caller graph for this function: