StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_richvoltagesC.h
1 #ifndef St_richvoltagesC_h
2 #define St_richvoltagesC_h
3 
4 #include "TChair.h"
5 #include "tables/St_richvoltages_Table.h"
6 
7 class St_richvoltagesC : public TChair {
8  public:
9  static St_richvoltagesC* instance();
10  richvoltages_st *Struct(Int_t i = 0) {return ((St_richvoltages*) Table())->GetTable()+i;}
11  UInt_t getNumRows() {return GetNRows();}
12  UInt_t runNumber(Int_t i = 0) {return Struct(i)->runNumber;}
13  UInt_t startStatusTime(Int_t i = 0) {return Struct(i)->startStatusTime;}
14  UInt_t endStatusTime(Int_t i = 0) {return Struct(i)->endStatusTime;}
15  UInt_t status(Int_t i = 0) {return Struct(i)->status;}
16  protected:
17  St_richvoltagesC(St_richvoltages *table=0) : TChair(table) {}
18  virtual ~St_richvoltagesC() {fgInstance = 0;}
19  private:
20  static St_richvoltagesC* fgInstance;
21  ClassDefChair(St_richvoltages, richvoltages_st )
22  ClassDef(St_richvoltagesC,1) //C++ TChair for richvoltages table class
23 };
24 #endif
Definition: TChair.h:27