CMS 3D CMS Logo

Identifiable Class Reference

Interface for all objects that should be identifiable, aka have a function that returns it's ID. More...

#include <CalibTracker/SiStripRunSummary/interface/Identifiable.h>

Inheritance diagram for Identifiable:

Flag FlagTxt FlagXML DAQFlagTxt DCSFlagTxt DQMFlagTxt GlobalFlagTxt TECFlagTxt TIBFlagTxt TIDFlagTxt TOBFlagTxt TriggerFlagTxt DAQFlagXML DCSFlagXML DQMFlagXML GlobalFlagXML TECFlagXML TIBFlagXML TIDFlagXML TOBFlagXML TriggerFlagXML

List of all members.

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 ()


Detailed Description

Interface for all objects that should be identifiable, aka have a function that returns it's ID.

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.


Constructor & Destructor Documentation

virtual Identifiable::~Identifiable (  )  [inline, virtual]

Definition at line 27 of file Identifiable.h.

00027 {}


Member Function Documentation

virtual ClassIDBase::ID Identifiable::getID (  )  const [pure virtual]

Method should be overriden by children: each child flag knows how to issue ID.

Returns:
ID of Child Flag.

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().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:24:49 2009 for CMSSW by  doxygen 1.5.4