// -*- mode: c++ -*- // // $Id: BrDbOutputFile.h,v 1.1 2001/10/08 11:00:34 cholm Exp $ // $Author: cholm $ // $Date: 2001/10/08 11:00:34 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrDbOutputFile #define BRAT_BrDbOutputFile #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 BrDbOutputFile : public BrDbTable { private: Char_t fFileName[64]; Int_t fRunNo; Int_t fPassId; public: BrDbOutputFile(const Char_t* name, Int_t runno, Int_t rev); static const Char_t* kTableName; static BrDbQuery* Create(void); static BrDbOutputFile* SingleInstance(TSQLRow*); static TObjArray* MultipleInstance(TSQLResult*); virtual BrDbQuery* Insert(void); void SetFileName(const Char_t* name); void SetRunNo(Int_t run) {fRunNo = run;} void SetPassId(Int_t id) {fPassId = id;} const Char_t* GetFileName(void) const {return fFileName; } Int_t GetRunNo() {return fRunNo;} Int_t GetPassId() {return fPassId;} ClassDef(BrDbOutputFile,1) // Component Class for BRAHMS database }; #endif //____________________________________________________________________ // // $Log: BrDbOutputFile.h,v $ // Revision 1.1 2001/10/08 11:00:34 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. // //