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