RAIDA
1.9.0
|
An object which can be stored in a tree. More...
#include <IManagedObject.h>
Public Member Functions | |
virtual | ~IManagedObject () |
Destructor. | |
virtual std::string | name () const =0 |
Get the name of an IManagedObject. More... | |
virtual void * | cast (const std::string &className) const =0 |
A simple introspection method. More... | |
An object which can be stored in a tree.
|
pure virtual |
A simple introspection method.
It offers to implementations the possibility to avoid the usage of the dynamic_cast. It appears that this C++ feature is not yet reliable (May 2003) in complex environments that intensivly use the dynamic loading. The signature of this method follows the qt_cast method found in Qt (see the Q_OBJECT macro). Example of usage is : AIDA::IManagedObject* object = tree->find("myData"); if(object) { AIDA::IHistogram* histo = object->cast("AIDA::IHistogram"); if(histo) { // the object is an histo. } }
className | The name of the class to cast on. |
Implemented in AIDA::IManagedObjectROOT.
|
pure virtual |
Get the name of an IManagedObject.
Names can only be changed using the ITree.mv().
Implemented in AIDA::IManagedObjectROOT.