// -*- mode: c++ -*- // $Id: BrDbShiftReport.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_BrDbShiftReport #define BRAT_BrDbShiftReport #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 BrDbShiftReport : public BrDbTable { private: Int_t fTime; // Time of submition Int_t fLogBook; // Log book number Int_t fLogPage1; // First page in logbook Int_t fLogPage2; // Second page in logbook Char_t fShift[256]; // Shift description Char_t fShiftSupervisor[256]; // Supervisor name Char_t fShiftPersonel[256]; // Persons on shift Int_t fSummarySize; // Size of trigger summary Char_t* fShiftSummary; //[fSummarySize] Summary of shift void SetShift(const Char_t* x); void SetShiftSupervisor(const Char_t* x); void SetShiftPersonel(const Char_t* x); void SetShiftSummary(const Char_t* x); public: BrDbShiftReport(); BrDbShiftReport(Int_t time, Int_t logBook, Int_t logPage1, Int_t logPage2, const Char_t* shift, const Char_t* shiftSupervisor, const Char_t* shiftPersonel, const Char_t* shiftSummary); static const Char_t* kTableName; static BrDbQuery* Create(void); static BrDbShiftReport* SingleInstance(TSQLRow*); static TObjArray* MultipleInstance(TSQLResult*); virtual BrDbQuery* Insert(void); Int_t GetTime() const { return fTime; } Int_t GetLogBook() const { return fLogBook; } Int_t GetLogPage1() const { return fLogPage1; } Int_t GetLogPage2() const { return fLogPage2; } const Char_t* GetShift() const { return fShift; } const Char_t* GetShiftSupervisor() const { return fShiftSupervisor; } const Char_t* GetShiftPersonel() const { return fShiftPersonel; } Int_t GetSummarySize() const { return fSummarySize; } const Char_t* GetShiftSummary() const { return (const Char_t*)fShiftSummary; } void Print(Option_t* option=""); ClassDef(BrDbShiftReport,1) // Shift Report Class for BRAHMS database } ; #endif // // $Log: BrDbShiftReport.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:39:15 cholm // Removed BrDbInc.h an all references to it // // Revision 1.1 2001/01/19 16:30:24 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. // //