// -*- mode: c++ -*- // $Id: BrDbRevisionType.h,v 1.2 2001/10/08 10:41:10 cholm Exp $ // $Author: cholm $ // $Date: 2001/10/08 10:41:10 $ // $Copyright: 2000 Brahms Collaboration // #ifndef BRAT_BrRevisionType #define BRAT_BrRevisionType #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 REVISIONTYPE_NAME "RevisionType" class BrDbRevisionType : public BrDbTable { private: Char_t fName[64]; // Name of revision type Char_t fComment[255]; // Comment field public: BrDbRevisionType(const Char_t* name, const Char_t* comment); static const Char_t* kTableName; static BrDbQuery* Create(void); static BrDbRevisionType* SingleInstance(TSQLRow*); static TObjArray* MultipleInstance(TSQLResult*); virtual BrDbQuery* Insert(void); virtual void SetName(const Char_t* name); virtual void SetComment(const Char_t* name); virtual const Char_t* GetName(void) const { return fName; } virtual const Char_t* GetComment(void) const { return fComment; } ClassDef(BrDbRevisionType,1) // RevisionType Class for BRAHMS database } ; #endif