source: trunk/Mars/mreport/MReportFitsRead.h@ 13414

Last change on this file since 13414 was 12741, checked in by tbretz, 13 years ago
File size: 1.4 KB
Line 
1#ifndef MARS_MReportFitsRead
2#define MARS_MReportFitsRead
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7#ifndef MARS_MTime
8#include "MTime.h"
9#endif
10
11#include <stdint.h>
12#include <map>
13
14namespace std
15{
16 class fits;
17}
18class THashTable;
19
20class MTime;
21class MReport;
22class MReportHelp;
23
24class MReportFitsRead : public MTask
25{
26private:
27 TString fFileName; // Name of the input file
28 TString fReportName; // Name of the report class
29
30 MReport *fReport; // List of possible reports to be interpreted
31
32 MTime fStart; // Time range which should be read from file
33 MTime fStop; // Time range which should be read from file
34
35 int32_t fBufQos; //! Buffer for Quality of Service
36 Double_t fBufTime; //! Buffer for Time
37
38 UInt_t fMjdRef;
39
40 enum { kHasNoHeader = BIT(14) };
41
42 Int_t PreProcess(MParList *pList);
43 Int_t Process();
44 Int_t PostProcess();
45
46 virtual Int_t CheckFileHeader() { return 0; }
47
48protected:
49 std::fits *fIn; //! buffered input stream (file to read from)
50
51public:
52 MReportFitsRead(const char *filename, const char *name=NULL, const char *title=NULL);
53 ~MReportFitsRead();
54
55 void SetHasNoHeader() { SetBit(kHasNoHeader); }
56 void SetTimeStart(const MTime &tm) { fStart = tm; }
57 void SetTimeStop(const MTime &tm) { fStop = tm; }
58
59 void SetReportName(const char *name) { fReportName = name; }
60
61 ClassDef(MReportFitsRead, 0)// Task to read general report file
62};
63
64#endif
Note: See TracBrowser for help on using the repository browser.