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