Last change
on this file since 1516 was 1464, checked in by ansari, 24 years ago |
1) Fin de passage des flags en int_8
2) TOIRegularWindow mis ds un fichier spare , Reza 11/4/2001
|
File size:
1.3 KB
|
Line | |
---|
1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
2 | #ifndef TOI_REGWINDOW_H
|
---|
3 | #define TOI_REGWINDOW_H
|
---|
4 |
|
---|
5 | #include "config.h"
|
---|
6 |
|
---|
7 | #include <pthread.h>
|
---|
8 | #include <vector>
|
---|
9 | using namespace std;
|
---|
10 | #include "toi.h"
|
---|
11 |
|
---|
12 | // Classe de TOI avec une fenetre glissante, et echantillonnage regulier.
|
---|
13 | // Pour le moment au moins,
|
---|
14 | // il faut que les providers fassent arriver les donnees par samplenum croissant.
|
---|
15 | class TOIRegularWindow : public TOIRegular {
|
---|
16 | public:
|
---|
17 | TOIRegularWindow();
|
---|
18 | TOIRegularWindow(string nm);
|
---|
19 | virtual ~TOIRegularWindow();
|
---|
20 |
|
---|
21 | virtual DataStatus isDataAvailNL(int iStart, int iEnd);
|
---|
22 | virtual DataStatus isDataAvailNL(int i); // override required
|
---|
23 |
|
---|
24 |
|
---|
25 | //protected:
|
---|
26 | vector<double> data;
|
---|
27 | vector<long> flags;
|
---|
28 | long i0;
|
---|
29 | double defaultValue;
|
---|
30 |
|
---|
31 | #ifdef WITH_SOPHYA
|
---|
32 | /* l'interface va etre modifiee, NE PAS UTILISER
|
---|
33 | virtual Array doGetData(int iStart, int iEnd);
|
---|
34 | virtual TArray<int_4> doGetFlag(int iStart, int iEnd);
|
---|
35 | l'interface va etre modifiee, NE PAS UTILISER */
|
---|
36 | #endif
|
---|
37 | virtual void doGetData(int i, double & val, int_8 & flg);
|
---|
38 |
|
---|
39 | virtual void doPutData(int i, double value, int_8 flag=0);
|
---|
40 | virtual void doWontNeedBefore(int i);
|
---|
41 |
|
---|
42 | virtual int nextDataAvail(int iAfter);
|
---|
43 | virtual bool hasSomeData();
|
---|
44 | };
|
---|
45 |
|
---|
46 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.