// -*- mode: c++ -*- // $Id: BrDbMagnet.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_BrDbMagnet #define BRAT_BrDbMagnet #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 BrDbMagnet : public BrDbTable { private: Int_t fTime; // Time Int_t fMagnet; // Magnet identifier Char_t fPolarity[256]; // Polarity Float_t fSetpoint; // Set Char_t fStatus[256]; // Status description void SetPolarity(const Char_t* polarity); void SetStatus(const Char_t* status); public: BrDbMagnet(); BrDbMagnet(Int_t time, Int_t magnet, const Char_t* polarity, Float_t setpoint, const Char_t* status); static const Char_t* kTableName; static BrDbQuery* Create(void); static BrDbMagnet* SingleInstance(TSQLRow*); static TObjArray* MultipleInstance(TSQLResult*); virtual BrDbQuery* Insert(void); Int_t GetTime() const { return fTime; } Int_t GetMagnet() const { return fMagnet; } const Char_t* GetPolarity() const { return fPolarity; } Float_t GetSetpoint() const { return fSetpoint; } const Char_t* GetStatus() const { return fStatus; } ClassDef(BrDbMagnet,1) // Magnet Class for BRAHMS database } ; #endif // // $Log: BrDbMagnet.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:39 cholm // Removed BrDbInc.h an all references to it // // Revision 1.1 2001/01/19 16:30:19 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. // //