source: trunk/Mars/mjobs/MSequenceSQL.h@ 19706

Last change on this file since 19706 was 9019, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MARS_MSequenceSQL
2#define MARS_MSequenceSQL
3
4#ifndef MARS_MSequence
5#include "MSequence.h"
6#endif
7
8class TSQLRow;
9class TSQLResult;
10
11class MSQLMagic;
12
13class MSequenceSQL : public MSequence
14{
15private:
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
21public:
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.