Changeset 352 in Sophya for trunk/Poubelle/archTOI.old/archtoi.h


Ignore:
Timestamp:
Aug 5, 1999, 3:34:11 PM (26 years ago)
Author:
ansari
Message:

added support for FITS output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/archtoi.h

    r350 r352  
    1010#include <vector>
    1111#include "toisvr.h"
     12#include "fitsio.h"
    1213
    1314using namespace std;
     
    1819  ArchTOI(string const& filename);
    1920
    20   void run(ostream& str);
    21   void run(string const& filename);
     21  void run(string const& outfilename);
    2222 
    2323  enum fmt {ascii_fmt, fits_fmt};
     
    3333  list<string> headertoi;
    3434  list<string> headeropt;
     35  list<string> toinames;
    3536  vector<flg>  toiflags;
    3637  fmt format;
    3738  string undef;
    3839  bool allBolos; // tous les bolos dans le header. Sinon seulement bolos transmis.
     40 
     41  void (ArchTOI::*openFile)(string const& filename);
     42  void (ArchTOI::*outHeader)(TOIIter& iter);
     43  void (ArchTOI::*outValue)(int icolumn, double value, bool notdef=false);
     44  void (ArchTOI::*endLine)();
     45  void (ArchTOI::*closeFile)();
     46 
     47  void openFile_A(string const& filename);
     48  void outHeader_A(TOIIter& iter);
     49  void outValue_A(int icolumn, double value, bool notdef=false);
     50  void endLine_A();
     51  void closeFile_A();
     52
     53  void openFile_F(string const& filename);
     54  void outHeader_F(TOIIter& iter);
     55  void outValue_F(int icolumn, double value, bool notdef=false);
     56  void endLine_F();
     57  void closeFile_F();
     58 
     59  fitsfile* fptr;
     60  int fitsStatus;
     61  int fitsLine;
     62  ofstream* ostr;
    3963};
    4064
Note: See TracChangeset for help on using the changeset viewer.