// -*- mode: c++ -*- // $Id: BrDbVolumePlatformMap.h,v 1.2 2001/11/05 23:41:42 hagel Exp $ // $Author: hagel $ // $Date: 2001/11/05 23:41:42 $ // $Copyright: 2001 Brahms Collaboration // #ifndef BRAT_BrDbVolumePlatformMap #define BRAT_BrDbVolumePlatformMap #ifndef ROOT_TObjArray #include "TObjArray.h" #endif #ifndef ROOT_TSQLServer #include "TSQLServer.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 BrDbVolumePlatformMap : public BrDbTable { friend class BrGeometriesDb; public: enum EPlatformType { kFFS = 1, kBFS = 2, kMRS = 3, kGlobal = 4, kNone = 5, kUnknown = 6 }; private: Char_t fName[64]; // Volume name Int_t fPlatformType; //platform type public: BrDbVolumePlatformMap(); BrDbVolumePlatformMap(const Char_t *volName, EPlatformType platformType); static const Char_t* kTableName; static BrDbQuery* Create(void); static BrDbVolumePlatformMap* SingleInstance(TSQLRow*); static TObjArray* MultipleInstance(TSQLResult*); virtual BrDbQuery* Insert(void); void SetName(const Char_t *name); const Char_t *GetName() const {return (const Char_t*)fName;} Int_t GetPlatformType() const {return fPlatformType;} ClassDef(BrDbVolumePlatformMap,1) // volume platform map Class for BRAHMS database } ; #endif // // $Log: BrDbVolumePlatformMap.h,v $ // Revision 1.2 2001/11/05 23:41:42 hagel // Changes to MySQL mode for Geometry DB manager // // Revision 1.1 2001/08/03 11:12:39 hagel // Initial revision //