source: trunk/MagicSoft/Mars/mjobs/MSequenceSQL.h@ 9003

Last change on this file since 9003 was 9002, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.1 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, char 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, Int_t seqno=-1, Int_t tel=-1) { GetFromDatabase(serv, seqno, tel); }
23 MSequenceSQL(const char *rc, Int_t seqno=-1, Int_t tel=-1) { GetFromDatabase(rc, seqno, tel); }
24 MSequenceSQL(Int_t seqno=-1, Int_t tel=-1) { GetFromDatabase(seqno, tel); }
25
26 Bool_t GetFromDatabase(MSQLMagic &serv, Int_t seqno=-1, Int_t tel=-1);
27 Bool_t GetFromDatabase(const char *rc, Int_t seqno=-1, Int_t tel=-1);
28 Bool_t GetFromDatabase(Int_t seqno=-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.