Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DbuHvFromSingles.h

Go to the documentation of this file.
00001 #ifndef DBUHVFROMSINGLES_H
00002 #define DBUHVFROMSINGLES_H
00003 
00004 #include "Rtypes.h"
00005 #include "DatabaseInterface/DbiTableRow.h"
00006 #include "DatabaseInterface/DbiOutRowStream.h"
00007 #include "DatabaseInterface/DbiResultSet.h"
00008 //#include "LeakChecker/Lea.h"
00009 
00010 class DbiValidityRec;
00011 
00012 class DbuHvFromSingles : public DbiTableRow
00013 {
00014 
00015 using TObject::Compare;  // So won't be hidden
00016 
00017 public:
00018 // Constructors and destructors.
00019   DbuHvFromSingles() { }
00020   DbuHvFromSingles(const DbuHvFromSingles& from) : DbiTableRow(from) { *this = from; }
00021   DbuHvFromSingles(Int_t a, UInt_t b, Int_t c) :
00022    iStatus(a), iSupermod(b), iColdChips(c) { }
00023   virtual ~DbuHvFromSingles(){ };
00024 
00025 
00026 // State testing member functions
00027   Bool_t CanL2Cache() const { return kTRUE; }
00028   Bool_t Compare(const DbuHvFromSingles& that ) const {
00029                 return     iStatus   == that.iStatus
00030                        &&  iSupermod == that.iSupermod
00031                        &&  iColdChips == that.iColdChips; }
00032 
00033    UInt_t GetIndex(UInt_t /* defIndex */) const { return iSupermod; }
00034     Int_t GetStatus()      const { return iStatus; }
00035     Int_t GetSupermodule() const { return iSupermod; }
00036     Int_t GetColdChips() const { return iColdChips; }
00037     Int_t GetAggregateNo() const { return iSupermod; }
00038     Bool_t IsOK()          const { if (iStatus == 0)  // let Unknown be OK
00039                                         return false; // run's down anyway
00040                                    else return true;} 
00041 
00042 // I/O  member functions
00043   virtual void Fill(DbiResultSet& rs, const DbiValidityRec* vrec);
00044   virtual void Store(DbiOutRowStream& ors, const DbiValidityRec* vrec) const;
00045 
00046   virtual DbiTableRow* CreateTableRow() const { return new DbuHvFromSingles; }
00047 
00048 private:  
00049 
00050 // Data members
00051 
00052     Int_t iStatus;
00053     Int_t iSupermod;
00054     Int_t iColdChips;
00055 
00056 ClassDef(DbuHvFromSingles,0)
00057 
00058 };
00059 
00060 #endif  // DBUHVFROMSINGLES_H

Generated on Mon Feb 15 11:06:35 2010 for loon by  doxygen 1.3.9.1