Rev | Line | |
---|
[1365] | 1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
| 2 |
|
---|
| 3 | #ifndef FITSTOIWTR_H
|
---|
| 4 | #define FITSTOIWTR_H
|
---|
| 5 |
|
---|
| 6 | #include "toi.h"
|
---|
| 7 | #include "toiprocessor.h"
|
---|
| 8 | #include <string>
|
---|
| 9 | #include <map>
|
---|
| 10 | #include "fitsio.h"
|
---|
| 11 |
|
---|
| 12 |
|
---|
| 13 | class FITSTOIWriter : public TOIProcessor {
|
---|
| 14 | public:
|
---|
| 15 | FITSTOIWriter(string fn);
|
---|
| 16 | ~FITSTOIWriter();
|
---|
| 17 |
|
---|
[1439] | 18 | virtual void afterinit();
|
---|
| 19 |
|
---|
[1532] | 20 | virtual void addInput(string name, TOI* toi)
|
---|
| 21 | {addInput(name,toi,false);}
|
---|
| 22 | virtual void addInput(string name, TOI* toi, bool withFlag);
|
---|
[1365] | 23 |
|
---|
| 24 | virtual void run();
|
---|
| 25 |
|
---|
| 26 | private:
|
---|
| 27 | string fname;
|
---|
| 28 | fitsfile *fptr;
|
---|
| 29 | int fstatus;
|
---|
| 30 | vector<TOI*> fwinputs;
|
---|
[1527] | 31 | int nCols;
|
---|
| 32 | map<int,pair<int, bool> > colsinput; // iTOI -> (colonne, hasflag)
|
---|
| 33 | // le flag est alors en colonne+1
|
---|
[1365] | 34 | };
|
---|
| 35 |
|
---|
| 36 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.