// Hi Emacs, this is -*- mode: c++ -*- Not C mode like you would think. #ifndef BRAT_BrRdbmMainDb #define BRAT_BrRdbmMainDb #ifndef BRAT_BrRdbmDb #include "BrRdbmDb.h" #endif #ifndef BRAT_BrMainDb #include "BrMainDb.h" #endif #ifndef BRAT_BrCalibrationsDb #include "BrCalibrationsDb.h" #endif #ifndef BRAT_BrRunsDb #include "BrRunsDb.h" #endif #ifndef BRAT_BrPassDb #include "BrPassDb.h" #endif #ifndef BRAT_BrGeometriesDb #include "BrGeometriesDb.h" #endif #ifndef BRAT_BrDbTable #include "BrDbTable.h" #endif #ifndef BRAT_BrDbPerson #include "BrDbPerson.h" #endif #ifndef BRAT_BrDbSector #include "BrDbSector.h" #endif #ifndef BRAT_BrDbDetector #include "BrDbDetector.h" #endif #ifndef BRAT_BrDbDetectorType #include "BrDbDetectorType.h" #endif #ifndef BRAT_BrDbComponent #include "BrDbComponent.h" #endif #ifndef BRAT_BrDbComponentType #include "BrDbComponentType.h" #endif class BrRdbmMainDb : public BrMainDb { public: BrRdbmMainDb(const Char_t* name="MainDb", const Char_t* title=BRAHMS_MAIN_DB_NAME); virtual ~BrRdbmMainDb() { Close(); } static BrMainDb* Instance(void); Bool_t Connect(Option_t* option=""); void AddDb(BrDbDb* db); void AddPerson(BrDbPerson* person); void AddSector(BrDbSector* sector); void AddDetector(BrDbDetector* det); void AddDetectorType(BrDbDetectorType* type); void AddComponent(BrDbComponent* comp); void AddComponentType(BrDbComponentType* type); BrDbDb* GetDb(const Char_t* name); BrDbPerson* GetPerson(const Char_t* condition); BrDbSector* GetSector(const Char_t* condition); BrDbDetector* GetDetector(const Char_t* condition); BrDbDetectorType* GetDetectorType(const Char_t* condition); BrDbComponent* GetComponent(const Char_t* condition); BrDbComponentType* GetComponentType(const Char_t* condition); TObjArray* GetXPerson(const Char_t* condition); TObjArray* GetXSector(const Char_t* condition); TObjArray* GetXDetector(const Char_t* condition); TObjArray* GetXDetectorType(const Char_t* condition); TObjArray* GetXComponent(const Char_t* condition); TObjArray* GetXComponentType(const Char_t* condition); BrDbPerson* GetPersonByName(const Char_t* lastname, const Char_t* firstnames); BrDbSector* GetSectorByName(const Char_t* name); BrDbDetector* GetDetectorByName(const Char_t* name); BrDbDetectorType* GetDetectorTypeByName(const Char_t* name); BrDbComponent* GetComponentByName(const Char_t* name, Int_t detectorId); BrDbComponentType* GetComponentTypeByName(const Char_t* name); Bool_t PurgeDetector(const Char_t* name); ClassDef(BrRdbmMainDb,0) // Database manager class for BRAT } ; #endif // _BrRdbmMainDb_HH