FACT++  1.0
DimDescriptionService::~DimDescriptionService ( )
virtual

If fDescription is found in fData it is removed from fData. The counter fCount is decreased and fService deleted if the counter reached 0.

Definition at line 132 of file DimDescriptionService.cc.

References fData.

133 {
134  const size_t pos = fData.find(fDescription+'\n');
135  if (pos!=std::string::npos)
136  fData.replace(pos, fDescription.size()+1, "");
137 
138  if (--fCount>0)
139  return;
140 
141  delete fService;
142  fService=0;
143 }
static DimService * fService
Counter to count the number of instatiations.
std::string fDescription
Data to be distributed with the service.
static std::string fData
Pointer to the DimService distributing the desscriptions.