// -*- mode: c++ -*- // $Id: BrDbDetectorType.h,v 1.2 2001/10/08 10:54:59 cholm Exp $ // $Author: cholm $ // $Date: 2001/10/08 10:54:59 $ // $Copyright: 2000 Brahms Collaboration // #ifndef BRAT_BrDetectorType #define BRAT_BrDetectorType #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 #define DETECTORTYPE_NAME "DetectorType" class BrDbDetectorType : public BrDbTable { private: Char_t fName[64]; public: BrDbDetectorType(const Char_t* name); static const Char_t* kTableName; static BrDbQuery* Create(void); static BrDbDetectorType* SingleInstance(TSQLRow*); static TObjArray* MultipleInstance(TSQLResult*); virtual BrDbQuery* Insert(void); virtual void SetName(const Char_t* name); virtual const Char_t* GetName(void) const { return fName; } ClassDef(BrDbDetectorType,1) // BRAHMS database table } ; #endif