RAIDA
1.9.0
|
An object which can be stored in a tree. More...
#include <IManagedObjectROOT.h>
Public Member Functions | |
virtual | ~IManagedObject () |
Destructor. | |
virtual std::string | name () const |
Get the name of an IManagedObject. More... | |
virtual void * | cast (const std::string &className) const |
A simple introspection method. More... | |
An object which can be stored in a tree.
|
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. |
Implements AIDA::IManagedObject.
|
virtual |
Get the name of an IManagedObject.
Names can only be changed using the ITree.mv().
Implements AIDA::IManagedObject.