// -*- mode: c++ -*- // $Id: BrDbConditionsVar.h,v 1.1.1.1 2001/06/21 14:55:17 hagel Exp $ // $Author: hagel $ // $Date: 2001/06/21 14:55:17 $ // $Copyright: 2000 Brahms Collaboration // #ifndef BRAT_BrDbConditionsVar #define BRAT_BrDbConditionsVar #ifndef ROOT_TObjArray #include #endif #ifndef ROOT_TSQLResult #include #endif #ifndef ROOT_TSQLRow #include #endif #ifndef BRAT_BrDbTable #include #endif #ifndef BRAT_BrDbQuery #include #endif class BrDbConditionsVar : public BrDbTable { private: Char_t fVarName[256]; // Variable name Int_t fVarId; // Variable Id Int_t fUnitsSize; // Variable units size Char_t* fUnits; //[fUnitsSize] Variable units Int_t fCommentsSize; // Variable comments size Char_t* fComments; //[fCommentsSize] Variable comments void SetVarName(const Char_t* name); void SetUnits(const Char_t* units); void SetComments(const Char_t* comments); public: BrDbConditionsVar(); BrDbConditionsVar(const Char_t* varName, Int_t varId, const Char_t* units, const Char_t* comments); static const Char_t* kTableName; static BrDbQuery* Create(void); static BrDbConditionsVar* SingleInstance(TSQLRow*); static TObjArray* MultipleInstance(TSQLResult*); virtual BrDbQuery* Insert(void); const Char_t* GetVarName() const { return fVarName; } Int_t GetVarId() const { return fVarId; } Int_t GetUnitsSize() const { return fUnitsSize; } const Char_t* GetUnits() const { return (const Char_t*)fUnits; } Int_t GetCommentsSize() const { return fCommentsSize; } const Char_t* GetComments() const { return (const Char_t*)fComments; } ClassDef(BrDbConditionsVar,1) // Conditions Var Class for BRAHMS database } ; #endif // // $Log: BrDbConditionsVar.h,v $ // Revision 1.1.1.1 2001/06/21 14:55:17 hagel // Initial revision of brat2 // // Revision 1.2 2001/06/05 18:38:17 cholm // Removed BrDbInc.h an all references to it // // Revision 1.1 2001/01/19 16:30:13 cholm // Revisited the Run database classes. Deleted old implemtation via BrRun, // and put in BrDbRun, BrDbFile, BrDbMagnet, BrDbConditions*, and // BrDbShiftReport. A description will be posted to brahms-dev-l soon. // //