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

Last change on this file since 1721 was 1717, checked in by aubourg, 24 years ago

nouveau fits

File size: 1.1 KB
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:
[1717]15 FITSTOIReader(string fn,int buff_sz=1000);
[1365]16 ~FITSTOIReader();
[1480]17
18 virtual void addFile(string fn);
19
[1365]20 virtual void init();
[1629]21 virtual void run();
22
23 inline int_8 ProcessedSampleCount() const { return totnscount; }
[1365]24
25protected:
26 virtual int calcMinOut();
27 virtual int calcMaxOut();
28
[1480]29 virtual void run1();
[1717]30 virtual void run2();
[1480]31 virtual void openFile(string fn);
32
[1365]33private:
[1480]34 fitsfile* fptr;
35 int fstatus;
36 string fname; // current file
37 long nrows; // current file
38 int firstSn; // current file
[1717]39 int Buff_Sz; // buffer size
[1480]40
[1527]41 int ncols; // including flags. getNOut() is # of tois.
[1480]42 int snBegin; // first file
43 int snEnd; // last file
44
45 vector<string> allfn;
[1527]46 map<int,pair<int, bool> > colsinput; // iTOI -> (colonne, hasflag)
47 // le flag est alors en colonne+1
[1480]48
[1629]49 int_8 totnscount; // Nombre total d'echantillon processe
50
[1365]51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.