Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

dataManager Class Reference

It stores, serves and updates the data. More...

#include <dataManager.h>

Inheritance diagram for dataManager:

serviceI messageVI optionVI nameVI nameVI List of all members.

Public Methods

 dataManager ()
 constructor - construct the servers.

virtual ~dataManager ()
 destructor. More...

template<class T> T* getData (std::string name, const T* dummy = 0) const
 returns the class derived from trsDataVI. More...

dataEventServerevt () const
 returns pointer to te dataEventServer.

dataDetectorServerdet () const
 returns pointer to the dataDetectorServer.

dataIOServerIO () const
 returns pointer to the persistency data.

detectorGeogeo () const
 returns the pointer to the detector geometry in dataDetectorServer.

virtual void writeOut () const
 write out information of the data servers.


Static Public Methods

dataManager* instance ()
 Singleton: pointer to itself.


Protected Methods

virtual trsDataVIgetTrsData (std::string name) const
 returns the trsData with that name in the servers.


Private Attributes

dataEventServerm_evt
 pointer to event data.

dataDetectorServerm_det
 pointer to detector data.

dataIOServerm_IO
 pointer to persistent data.


Static Private Attributes

dataManager* m_instance = 0
 Singleton: pointer to itself.


Detailed Description

It stores, serves and updates the data.

Definition at line 43 of file dataManager.h.


Constructor & Destructor Documentation

dataManager::dataManager ( )

constructor - construct the servers.

Definition at line 13 of file dataManager.cpp.

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

destructor.

set the data manager into the system servers

Definition at line 33 of file dataManager.cpp.


Member Function Documentation

dataIOServer * dataManager::IO ( ) const [inline]

returns pointer to the persistency data.

Definition at line 69 of file dataManager.h.

dataDetectorServer * dataManager::det ( ) const [inline]

returns pointer to the dataDetectorServer.

Definition at line 67 of file dataManager.h.

dataEventServer * dataManager::evt ( ) const [inline]

returns pointer to te dataEventServer.

Definition at line 65 of file dataManager.h.

detectorGeo * dataManager::geo ( ) const [inline]

returns the pointer to the detector geometry in dataDetectorServer.

Definition at line 72 of file dataManager.h.

template<class T>
T * dataManager::getData (
std::string name,
const T * dummy = 0 ) const [inline]

returns the class derived from trsDataVI.

The pointer to a dummy class of the derived type is needed in order to identify the template. JAH errors with dinamic_cast.

Definition at line 59 of file dataManager.h.

trsDataVI * dataManager::getTrsData ( std::string name ) const [inline, protected, virtual]

returns the trsData with that name in the servers.

Definition at line 41 of file dataManager.cpp.

dataManager * dataManager::instance ( ) [inline, static]

Singleton: pointer to itself.

Definition at line 54 of file dataManager.h.

void dataManager::writeOut ( ) const [inline, virtual]

write out information of the data servers.

Reimplemented from messageVI.

Definition at line 50 of file dataManager.cpp.


Member Data Documentation

dataIOServer * dataManager::m_IO [private]

pointer to persistent data.

Definition at line 92 of file dataManager.h.

dataDetectorServer * dataManager::m_det [private]

pointer to detector data.

Definition at line 90 of file dataManager.h.

dataEventServer * dataManager::m_evt [private]

pointer to event data.

Definition at line 88 of file dataManager.h.

dataManager * dataManager::m_instance = 0 [static, private]

Singleton: pointer to itself.

Definition at line 85 of file dataManager.h.


The documentation for this class was generated from the following files:
Generated at Fri Aug 18 12:57:40 2000 for centella framework by doxygen 1.1.3 written by Dimitri van Heesch, © 1997-2000