00001 #ifndef St_richvoltagesC_h
00002 #define St_richvoltagesC_h
00003
00004 #include "TChair.h"
00005 #include "tables/St_richvoltages_Table.h"
00006
00007 class St_richvoltagesC : public TChair {
00008 public:
00009 static St_richvoltagesC* instance();
00010 richvoltages_st *Struct(Int_t i = 0) {return ((St_richvoltages*) Table())->GetTable()+i;}
00011 UInt_t getNumRows() {return GetNRows();}
00012 UInt_t runNumber(Int_t i = 0) {return Struct(i)->runNumber;}
00013 UInt_t startStatusTime(Int_t i = 0) {return Struct(i)->startStatusTime;}
00014 UInt_t endStatusTime(Int_t i = 0) {return Struct(i)->endStatusTime;}
00015 UInt_t status(Int_t i = 0) {return Struct(i)->status;}
00016 protected:
00017 St_richvoltagesC(St_richvoltages *table=0) : TChair(table) {}
00018 virtual ~St_richvoltagesC() {fgInstance = 0;}
00019 private:
00020 static St_richvoltagesC* fgInstance;
00021 ClassDefChair(St_richvoltages, richvoltages_st )
00022 ClassDef(St_richvoltagesC,1)
00023 };
00024 #endif