Line | |
---|
1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
2 |
|
---|
3 | #ifndef FITSTOIRDR_H
|
---|
4 | #define FITSTOIRDR_H
|
---|
5 |
|
---|
6 | #include "toiprocessor.h"
|
---|
7 | #include <string>
|
---|
8 | #include <vector>
|
---|
9 | #include "fitsio.h"
|
---|
10 |
|
---|
11 |
|
---|
12 | class FITSTOIReader : public TOIProcessor {
|
---|
13 | public:
|
---|
14 | FITSTOIReader(string fn);
|
---|
15 | ~FITSTOIReader();
|
---|
16 |
|
---|
17 | virtual void addFile(string fn);
|
---|
18 |
|
---|
19 | virtual void init();
|
---|
20 | virtual void run();
|
---|
21 |
|
---|
22 | protected:
|
---|
23 | virtual int calcMinOut();
|
---|
24 | virtual int calcMaxOut();
|
---|
25 |
|
---|
26 | virtual void run1();
|
---|
27 | virtual void openFile(string fn);
|
---|
28 |
|
---|
29 | private:
|
---|
30 | fitsfile* fptr;
|
---|
31 | int fstatus;
|
---|
32 | string fname; // current file
|
---|
33 | long nrows; // current file
|
---|
34 | int firstSn; // current file
|
---|
35 |
|
---|
36 | int ncols;
|
---|
37 | int snBegin; // first file
|
---|
38 | int snEnd; // last file
|
---|
39 |
|
---|
40 | vector<string> allfn;
|
---|
41 |
|
---|
42 | };
|
---|
43 |
|
---|
44 |
|
---|
45 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.