// -*- mode: c++ -*- // $Id: BrDbComponentType.h,v 1.2 2001/10/08 10:54:40 cholm Exp $ // $Author: cholm $ // $Date: 2001/10/08 10:54:40 $ // $Copyright: 2000 Brahms Collaboration // #ifndef BRAT_BrDbComponentType #define BRAT_BrDbComponentType #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 COMPONENTTYPE_NAME "ComponentType" class BrDbComponentType : public BrDbTable { private: Char_t fName[64]; public: BrDbComponentType(const Char_t* name); static const Char_t* kTableName; static BrDbQuery* Create(void); static BrDbComponentType* 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(BrDbComponentType,1) // BRAHMS database table } ; #endif