// -*- mode: c++ -*- // $Id: BrDbPass.h,v 1.1 2001/10/08 11:00:43 cholm Exp $ // $Author: cholm $ // $Date: 2001/10/08 11:00:43 $ // $Copyright: 2000 Brahms Collaboration // #ifndef BRAT_BrDbPass #define BRAT_BrDbPass #ifndef ROOT_TObjArray #include "TObjArray.h" #endif #ifndef ROOT_TSQLResult #include "TSQLResult.h" #endif #ifndef ROOT_TSQLRow #include "TSQLRow.h" #endif #ifndef BRAT_BrDbTable #include "BrDbTable.h" #endif #ifndef BRAT_BrDbQuery #include "BrDbQuery.h" #endif class BrDbPass : public BrDbTable { private: Char_t fPassName[64]; Int_t fRunNo; Int_t fStartTime; // Unix start time Int_t fEndTime; // Unix end time Int_t fRevisionId; // Revision of this pass. public: BrDbPass(const Char_t* name, Int_t runno = -1); static const Char_t* kTableName; static BrDbQuery* Create(void); static BrDbPass* SingleInstance(TSQLRow*); static TObjArray* MultipleInstance(TSQLResult*); virtual BrDbQuery* Insert(void); void SetName(const Char_t* name); void SetRunNo(Int_t runno) { fRunNo = runno;} void SetStartTime(Int_t time) {fStartTime = time;} void SetEndTime(Int_t time) {fEndTime = time;} void SetRevisionId(Int_t id) {fRevisionId = id;} const Char_t* GetName(void) const { return fPassName; } Int_t GetRunNo(void) const { return fRunNo; } Int_t GetStartTime() const { return fStartTime; } Int_t GetEndTime() const { return fEndTime; } Int_t GetRevisionId() const {return fRevisionId;} ClassDef(BrDbPass,1) // Component Class for BRAHMS database } ; #endif