Last change
on this file since 1711 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:
848 bytes
|
Line | |
---|
1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
2 |
|
---|
3 | #ifndef FITSTOIWTR_H
|
---|
4 | #define FITSTOIWTR_H
|
---|
5 |
|
---|
6 | #include "toi.h"
|
---|
7 | #include "toiprocessor.h"
|
---|
8 | #include <string>
|
---|
9 | #include <map>
|
---|
10 | #include "fitsio.h"
|
---|
11 |
|
---|
12 |
|
---|
13 | class FITSTOIWriter : public TOIProcessor {
|
---|
14 | public:
|
---|
15 | FITSTOIWriter(string fn);
|
---|
16 | ~FITSTOIWriter();
|
---|
17 |
|
---|
18 | virtual void afterinit();
|
---|
19 |
|
---|
20 | virtual void addInput(string name, TOI* toi)
|
---|
21 | {addInput(name,toi,false);}
|
---|
22 | virtual void addInput(string name, TOI* toi, bool withFlag);
|
---|
23 |
|
---|
24 | virtual void run();
|
---|
25 |
|
---|
26 | inline int_8 ProcessedSampleCount() const { return totnscount; }
|
---|
27 |
|
---|
28 | private:
|
---|
29 | string fname;
|
---|
30 | fitsfile *fptr;
|
---|
31 | int fstatus;
|
---|
32 | vector<TOI*> fwinputs;
|
---|
33 | int nCols;
|
---|
34 | map<int,pair<int, bool> > colsinput; // iTOI -> (colonne, hasflag)
|
---|
35 | // le flag est alors en colonne+1
|
---|
36 |
|
---|
37 | int_8 totnscount; // Nombre total d'echantillon processe
|
---|
38 | };
|
---|
39 |
|
---|
40 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.