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

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