source: trunk/MagicSoft/Mars/mreport/MReportFileRead.h@ 3254

Last change on this file since 3254 was 2711, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MReportFileRead
2#define MARS_MReportFileRead
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7#ifndef MARS_MTime
8#include "MTime.h"
9#endif
10
11/*// gcc 3.2
12//class ifstream;
13#include <iosfwd>
14*/
15
16class THashTable;
17
18class MTime;
19class MReport;
20class MReportHelp;
21
22class MReportFileRead : public MTask
23{
24private:
25 static const TString gsReportHeader;
26 static const TString gsVersionPrefix;
27
28 TString fFileName;
29 ifstream *fIn; //! buffered input stream (file to read from)
30
31 THashTable *fList;
32
33 MTime fStart; // Time range which should be read from file
34 MTime fStop; // Time range which should be read from file
35
36 ULong_t fNumLine; // line counter
37
38 enum { kHasNoHeader = BIT(14) };
39
40 Int_t PreProcess(MParList *pList);
41 Int_t Process();
42 Int_t PostProcess();
43
44 Int_t CheckFileHeader() const;
45 MReport *GetReport(const TString &str) const;
46 MReport *GetReport(MReportHelp *help) const;
47 MReportHelp *GetReportHelp(const TString &str) const;
48
49public:
50 MReportFileRead(const char *filename, const char *name=NULL, const char *title=NULL);
51 ~MReportFileRead();
52
53 void SetHasNoHeader() { SetBit(kHasNoHeader); }
54 void SetTimeStart(const MTime &tm) { fStart = tm; }
55 void SetTimeStop(const MTime &tm) { fStop = tm; }
56
57 Bool_t AddToList(const char *name) const;
58
59 ClassDef(MReportFileRead, 0)// Task to read the central control report file
60};
61
62#endif
Note: See TracBrowser for help on using the repository browser.