|
BrDbElementclass description - source file - inheritance tree class BrDbElement : public TObjectpublic: Data Membersprivate: Class DescriptionBrCalibrationManager This manager class will be the owner of the DetectorParameter Objects. Its intended use if for a user module to access database only via this mechanism, and not by opening any files by themselves. It also ensures that in the case that several user modules uses a given geometry it is ensured that a) The refer to the same object b) The application can use the setter methods to change values for a geometry constant and will thus be the same for all modules. c) The objects are owned by the manager and will be deleted only when the program exists (The instance is a static object). Sample code: The application can load the Manager and keep a global pointer accesible via a Brat common application file. It is in fact implemented via a Singleton mechanism. This enables us to use both the global mechanism as well as the instantons. Main application will have --------------------------- BrCalibrationManager *gParamDb = BrCalibrationManager::Instance(); The user module should have (either in the Named Constructor or in the Init() method. ------------------------------------ BrCalibrationManager *gParamDb = BrCalibrationManager::Instance(); _______________________________________________________________________ BrDbElement This class is used only by the manager class. The objects are used to maintain what databases objects has been loaded via this mechanism. ~BrDbElement() BrDbElement(const Char_t* classname, const Char_t* detectorname, TObject* obj) void Print(Option_t* option) const Inline FunctionsBrDbElement BrDbElement(const Char_t* classname, const Char_t* detectorname, TObject* obj) TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) BrDbElement BrDbElement(BrDbElement&) |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|