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

Last change on this file since 1800 was 1793, checked in by aubourg, 24 years ago

IRIX stuff

File size: 1.5 KB
Line 
1// This may look like C code, but it is really -*- C++ -*-
2
3// ArchTOIPipe (C) CEA/DAPNIA/SPP IN2P3/LAL
4// Eric Aubourg
5// Christophe Magneville
6// Reza Ansari
7// $Id: fitstoirdr.h,v 1.10 2001-11-27 12:13:41 aubourg Exp $
8
9
10#ifndef FITSTOIRDR_H
11#define FITSTOIRDR_H
12
13#include "config.h"
14#include "toiprocessor.h"
15#include <string>
16#include <vector>
17#include <map>
18#include "fitsio.h"
19
20
21class FITSTOIReader : public TOIProcessor {
22public:
23 FITSTOIReader(string fn,int buff_sz=1000);
24 ~FITSTOIReader();
25
26 void setImplicitSN(int snStart=0);
27
28 virtual void addFile(string fn);
29
30 virtual void init();
31 virtual void run();
32
33 inline int_8 ProcessedSampleCount() const { return totnscount; }
34
35protected:
36 virtual int calcMinOut();
37 virtual int calcMaxOut();
38
39 virtual void run1();
40 virtual void run2();
41 virtual void openFile(string fn);
42
43private:
44 fitsfile* fptr;
45 int fstatus;
46 string fname; // current file
47 long nrows; // current file
48 int firstSn; // current file
49 int Buff_Sz; // buffer size
50
51 int ncols; // including flags. getNOut() is # of tois.
52 int snBegin; // first file
53 int snEnd; // last file
54
55 bool implicitSN;
56 int implicitSNStart;
57
58 vector<string> allfn;
59 map<int,pair<int, bool> > colsinput; // iTOI -> (colonne, hasflag)
60 // le flag est alors en colonne+1
61
62 int_8 totnscount; // Nombre total d'echantillon processe
63
64};
65
66#endif
Note: See TracBrowser for help on using the repository browser.