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

Last change on this file since 2685 was 2678, 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 enum { kHasNoHeader = BIT(14) };
37
38 Int_t PreProcess(MParList *pList);
39 Int_t Process();
40 Int_t PostProcess();
41
42 Bool_t CheckFileHeader() const;
43 MReport *GetReport(const TString &str) const;
44 MReport *GetReport(MReportHelp *help) const;
45 MReportHelp *GetReportHelp(const TString &str) const;
46
47public:
48 MReportFileRead(const char *filename, const char *name=NULL, const char *title=NULL);
49 ~MReportFileRead();
50
51 void SetHasNoHeader() { SetBit(kHasNoHeader); }
52 void SetTimeStart(const MTime &tm) { fStart = tm; }
53 void SetTimeStop(const MTime &tm) { fStop = tm; }
54
55 Bool_t AddToList(const char *name) const;
56
57 ClassDef(MReportFileRead, 0)// Task to read the central control report file
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.