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

Last change on this file since 1700 was 1629, checked in by ansari, 24 years ago
  • Ajout pthread_exit apres l'execution de run() ds TOIProcessor::ThreadStart()
  • Ajout de la classe ProcSampleCounter<T> pour affichage continu de stats ds toimanager.h .cc
  • correction mineure de toi2map.cc
  • Utilisation de ProcSampleCounter<T> ds tsttoi2map.cc et simtst.cc

Reza 8/8/2001

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