// -*- mode: c++ -*- // // $Id: BrPassInfoManager.h,v 1.1 2001/10/08 11:01:13 cholm Exp $ // $Author: cholm $ // $Date: 2001/10/08 11:01:13 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrPassInfoManager #define BRAT_BrPassInfoManager #ifndef ROOT_TObject #include "TObject.h" #endif #ifndef ROOT_TObjArray #include "TObjArray.h" #endif #ifndef BRAT_BrPassInfo #include "BrPassInfo.h" #endif class BrPassInfoManager : public TObject { private: Bool_t fInitialized; TObjArray fPasses; // List of registered passes TIter fNextPass; // Iterator on passes BrPassInfo fCurrentPass; // Int_t fDebugLevel; static BrPassInfoManager* fgInstance; public: BrPassInfoManager(); static BrPassInfoManager* Instance(); void Init(); BrPassInfo* Register(const Char_t* name, Int_t runNo); const BrPassInfo* GetCurrentPass() const { return &fCurrentPass; } void Update(); void Commit(); Int_t DebugLevel() const { return fDebugLevel; } void SetDebugLevel(Int_t lvl) { fDebugLevel = lvl; } ClassDef(BrPassInfoManager,0) // Manager of pass information }; #endif //____________________________________________________________________ // // $Log: BrPassInfoManager.h,v $ // Revision 1.1 2001/10/08 11:01:13 cholm // Reimplmented this DB interface to allow Polymorphic access. This means // the at the class BrPassInfo and the corresponding manager // BrPassInfoManager is what the user sees, rather than the lowlevel // BrDbPass and so on. Also, shortend some class names since they were // really long and didn't really add any information to the class. All // table representations are now prefixed with BrDb like in other database // access classes. // //