Rev | Line | |
---|
[1464] | 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
|
---|
[1532] | 37 | virtual void doGetData(int i, double & val, uint_8 & flg);
|
---|
[1464] | 38 |
|
---|
[1532] | 39 | virtual void doPutData(int i, double value, uint_8 flag=0);
|
---|
[1464] | 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.