source: Sophya/trunk/ArchTOIPipe/Kernel/fitstoirdr.h@ 1608

Last change on this file since 1608 was 1527, checked in by aubourg, 24 years ago

gestion des flags

File size: 960 bytes
RevLine 
[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>
[1527]9#include <map>
[1365]10#include "fitsio.h"
11
12
13class FITSTOIReader : public TOIProcessor {
14public:
15 FITSTOIReader(string fn);
16 ~FITSTOIReader();
[1480]17
18 virtual void addFile(string fn);
19
[1365]20 virtual void init();
21 virtual void run();
22
23protected:
24 virtual int calcMinOut();
25 virtual int calcMaxOut();
26
[1480]27 virtual void run1();
28 virtual void openFile(string fn);
29
[1365]30private:
[1480]31 fitsfile* fptr;
32 int fstatus;
33 string fname; // current file
34 long nrows; // current file
35 int firstSn; // current file
36
[1527]37 int ncols; // including flags. getNOut() is # of tois.
[1480]38 int snBegin; // first file
39 int snEnd; // last file
40
41 vector<string> allfn;
[1527]42 map<int,pair<int, bool> > colsinput; // iTOI -> (colonne, hasflag)
43 // le flag est alors en colonne+1
[1480]44
[1365]45};
46
47
48#endif
Note: See TracBrowser for help on using the repository browser.