| Rev | Line | |
|---|
| [1365] | 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>
|
|---|
| [1480] | 8 | #include <vector>
|
|---|
| [1365] | 9 | #include "fitsio.h"
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 | class FITSTOIReader : public TOIProcessor {
|
|---|
| 13 | public:
|
|---|
| 14 | FITSTOIReader(string fn);
|
|---|
| 15 | ~FITSTOIReader();
|
|---|
| [1480] | 16 |
|
|---|
| 17 | virtual void addFile(string fn);
|
|---|
| 18 |
|
|---|
| [1365] | 19 | virtual void init();
|
|---|
| 20 | virtual void run();
|
|---|
| 21 |
|
|---|
| 22 | protected:
|
|---|
| 23 | virtual int calcMinOut();
|
|---|
| 24 | virtual int calcMaxOut();
|
|---|
| 25 |
|
|---|
| [1480] | 26 | virtual void run1();
|
|---|
| 27 | virtual void openFile(string fn);
|
|---|
| 28 |
|
|---|
| [1365] | 29 | private:
|
|---|
| [1480] | 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 |
|
|---|
| [1365] | 42 | };
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.