CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Public Attributes | List of all members
lucassview::deleteObsoleteHistogram Struct Reference

delete all root histograms that are not on the list More...

+ Collaboration diagram for lucassview::deleteObsoleteHistogram:

Public Member Functions

 deleteObsoleteHistogram (const list< string > &allkeys)
 constructor More...
 
void operator() (TObject *obj) const
 the operator More...
 

Public Attributes

const list< string > & _allkeys
 the list with all cass histogram keys More...
 

Detailed Description

delete all root histograms that are not on the list

go through the list of objects in memory and erase it if it not on the list

Author
Lutz Foucar

Definition at line 71 of file histo_updater.cpp.

Constructor & Destructor Documentation

lucassview::deleteObsoleteHistogram::deleteObsoleteHistogram ( const list< string > &  allkeys)
inline

constructor

Parameters
allkeysall available keys on the server

Definition at line 77 of file histo_updater.cpp.

Member Function Documentation

void lucassview::deleteObsoleteHistogram::operator() ( TObject *  obj) const
inline

the operator

if the object is a TH1 and its name is not on the allkeys list, check if the title is the same as the name of the object. If so it is most likely a cass histogram, that is not on the list anymore, so delete it.

Parameters
objThe object that potentially will be deleted

Definition at line 89 of file histo_updater.cpp.

Member Data Documentation

const list<string>& lucassview::deleteObsoleteHistogram::_allkeys

the list with all cass histogram keys

Definition at line 105 of file histo_updater.cpp.


The documentation for this struct was generated from the following file: