| Last change
 on this file since 2044 was             2041, checked in by ansari, 23 years ago | 
        
          | 
Modifs fg_ --> FLAG_ ds FITSTOIReader et Writer , Reza 03/06/2002
 | 
        
          | File size:
            1.3 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 | 
|---|
| [2041] | 7 | // $Id: fitstoiwtr.h,v 1.12 2002-06-03 14:23:39 ansari 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> | 
|---|
| [1765] | 16 | #include <map> | 
|---|
| [1365] | 17 | #include "fitsio.h" | 
|---|
|  | 18 |  | 
|---|
|  | 19 |  | 
|---|
|  | 20 | class FITSTOIWriter : public TOIProcessor { | 
|---|
|  | 21 | public: | 
|---|
|  | 22 | FITSTOIWriter(string fn); | 
|---|
|  | 23 | ~FITSTOIWriter(); | 
|---|
|  | 24 |  | 
|---|
| [1785] | 25 | void         setImplicitSN(); | 
|---|
| [1439] | 26 | virtual void afterinit(); | 
|---|
|  | 27 |  | 
|---|
| [1532] | 28 | virtual void  addInput(string name, TOI* toi) | 
|---|
|  | 29 | {addInput(name,toi,false);} | 
|---|
|  | 30 | virtual void  addInput(string name, TOI* toi, bool withFlag); | 
|---|
| [1365] | 31 |  | 
|---|
| [1629] | 32 | virtual void  run(); | 
|---|
| [2041] | 33 |  | 
|---|
|  | 34 | inline void   setLongFlagPrefix(bool fg = true) { longfgprefix = fg; } | 
|---|
| [1629] | 35 | inline int_8  ProcessedSampleCount() const { return totnscount; } | 
|---|
| [1365] | 36 |  | 
|---|
|  | 37 | private: | 
|---|
| [1785] | 38 | bool      implicitSN; | 
|---|
| [1365] | 39 | string fname; | 
|---|
|  | 40 | fitsfile *fptr; | 
|---|
|  | 41 | int fstatus; | 
|---|
|  | 42 | vector<TOI*> fwinputs; | 
|---|
| [1527] | 43 | int nCols; | 
|---|
|  | 44 | map<int,pair<int, bool> > colsinput; // iTOI -> (colonne, hasflag) | 
|---|
|  | 45 | // le flag est alors en colonne+1 | 
|---|
| [1629] | 46 |  | 
|---|
|  | 47 | int_8 totnscount;   // Nombre total d'echantillon processe | 
|---|
| [2041] | 48 | bool longfgprefix;  // if true ---> FLAG_ / sinon fg_ | 
|---|
| [1365] | 49 | }; | 
|---|
|  | 50 |  | 
|---|
|  | 51 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.