#include <CalibTracker/SiStripRunSummary/interface/Identifiable.h>
Public Member Functions | |
virtual ClassIDBase::ID | getID () const =0 |
Method should be overriden by children: each child flag knows how to issue ID. | |
virtual | ~Identifiable () |
Application example:
std::map<ID, Flag *> oFlags; // Save Flags in file ... // Read Flags from file // restore oFlags in memory. Problem: since operations are performed with // pointers it is unknow what flag is pointed at currently and it's ID // can not be obtained. Solution: use Identifiable interface. Then each // Child flag can automatically return it's ID.
Definition at line 25 of file Identifiable.h.
virtual Identifiable::~Identifiable | ( | ) | [inline, virtual] |
virtual ClassIDBase::ID Identifiable::getID | ( | ) | const [pure virtual] |
Method should be overriden by children: each child flag knows how to issue ID.
Implemented in DAQFlagTxt, DAQFlagXML, DCSFlagTxt, DCSFlagXML, DQMFlagTxt, DQMFlagXML, GlobalFlagTxt, GlobalFlagXML, TECFlagTxt, TECFlagXML, TIBFlagTxt, TIBFlagXML, TIDFlagTxt, TIDFlagXML, TOBFlagTxt, TOBFlagXML, TriggerFlagTxt, and TriggerFlagXML.
Referenced by FlagXML::addChild(), and FlagTxt::addChild().