| Line |  | 
|---|
| 1 | #ifndef MARS_MSequenceSQL | 
|---|
| 2 | #define MARS_MSequenceSQL | 
|---|
| 3 |  | 
|---|
| 4 | #ifndef MARS_MSequence | 
|---|
| 5 | #include "MSequence.h" | 
|---|
| 6 | #endif | 
|---|
| 7 |  | 
|---|
| 8 | class TSQLRow; | 
|---|
| 9 | class TSQLResult; | 
|---|
| 10 |  | 
|---|
| 11 | class MSQLMagic; | 
|---|
| 12 |  | 
|---|
| 13 | class MSequenceSQL : public MSequence | 
|---|
| 14 | { | 
|---|
| 15 | private: | 
|---|
| 16 | Bool_t  GetRuns(MSQLMagic &serv, TString query, RunType_t type, UInt_t nevts=(UInt_t)-1); | 
|---|
| 17 | TString GetTimeFromDatabase(MSQLMagic &serv, const TString &query); | 
|---|
| 18 | Bool_t  GetFromDatabase(MSQLMagic &serv, TSQLResult &res); | 
|---|
| 19 | Bool_t  GetFromDatabase(MSQLMagic &serv, TSQLRow &data); | 
|---|
| 20 |  | 
|---|
| 21 | public: | 
|---|
| 22 | MSequenceSQL(MSQLMagic &serv, UInt_t seqno, Int_t tel=0) { GetFromDatabase(serv, seqno, tel); } | 
|---|
| 23 | MSequenceSQL(const char *rc, UInt_t seqno, Int_t tel=0)  { GetFromDatabase(rc, seqno, tel); } | 
|---|
| 24 | MSequenceSQL(UInt_t seqno, Int_t tel=0)                  { GetFromDatabase(seqno, tel); } | 
|---|
| 25 |  | 
|---|
| 26 | Bool_t GetFromDatabase(MSQLMagic &serv, UInt_t seqno=(UInt_t)-1, Int_t tel=-1); | 
|---|
| 27 | Bool_t GetFromDatabase(const char *rc, UInt_t seqno=(UInt_t)-1, Int_t tel=-1); | 
|---|
| 28 | Bool_t GetFromDatabase(UInt_t seqno=(UInt_t)-1, Int_t tel=-1) { return GetFromDatabase("sql.rc", seqno, tel); } | 
|---|
| 29 |  | 
|---|
| 30 | ClassDef(MSequenceSQL, 0) // Extension of MSequence to get a sequence from a database | 
|---|
| 31 | }; | 
|---|
| 32 |  | 
|---|
| 33 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.