Last change
on this file since 1764 was 1759, checked in by aubourg, 24 years ago |
on rechange les include stl pour !&@@ SGI.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[1365] | 1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
| 2 |
|
---|
[1738] | 3 | // ArchTOIPipe (C) CEA/DAPNIA/SPP IN2P3/LAL
|
---|
| 4 | // Eric Aubourg
|
---|
| 5 | // Christophe Magneville
|
---|
| 6 | // Reza Ansari
|
---|
[1759] | 7 | // $Id: fitstoiwtr.h,v 1.9 2001-11-13 15:47:25 aubourg Exp $
|
---|
[1738] | 8 |
|
---|
| 9 |
|
---|
[1365] | 10 | #ifndef FITSTOIWTR_H
|
---|
| 11 | #define FITSTOIWTR_H
|
---|
| 12 |
|
---|
| 13 | #include "toi.h"
|
---|
| 14 | #include "toiprocessor.h"
|
---|
| 15 | #include <string>
|
---|
[1759] | 16 | #include <map.h>
|
---|
[1365] | 17 | #include "fitsio.h"
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 | class FITSTOIWriter : public TOIProcessor {
|
---|
| 21 | public:
|
---|
| 22 | FITSTOIWriter(string fn);
|
---|
| 23 | ~FITSTOIWriter();
|
---|
| 24 |
|
---|
[1439] | 25 | virtual void afterinit();
|
---|
| 26 |
|
---|
[1532] | 27 | virtual void addInput(string name, TOI* toi)
|
---|
| 28 | {addInput(name,toi,false);}
|
---|
| 29 | virtual void addInput(string name, TOI* toi, bool withFlag);
|
---|
[1365] | 30 |
|
---|
[1629] | 31 | virtual void run();
|
---|
| 32 |
|
---|
| 33 | inline int_8 ProcessedSampleCount() const { return totnscount; }
|
---|
[1365] | 34 |
|
---|
| 35 | private:
|
---|
| 36 | string fname;
|
---|
| 37 | fitsfile *fptr;
|
---|
| 38 | int fstatus;
|
---|
| 39 | vector<TOI*> fwinputs;
|
---|
[1527] | 40 | int nCols;
|
---|
| 41 | map<int,pair<int, bool> > colsinput; // iTOI -> (colonne, hasflag)
|
---|
| 42 | // le flag est alors en colonne+1
|
---|
[1629] | 43 |
|
---|
| 44 | int_8 totnscount; // Nombre total d'echantillon processe
|
---|
[1365] | 45 | };
|
---|
| 46 |
|
---|
| 47 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.