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

Last change on this file since 1775 was 1765, checked in by aubourg, 24 years ago

back again map.h -> map

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