Last change
on this file since 2319 was 2037, checked in by ansari, 23 years ago |
Amelioration NoOpProcessor et mesovh2.cc pour investigation pb kill sur magique - Reza 31/5/2002
|
File size:
1.3 KB
|
Rev | Line | |
---|
[1487] | 1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
| 2 |
|
---|
[1738] | 3 | // ArchTOIPipe (C) CEA/DAPNIA/SPP IN2P3/LAL
|
---|
| 4 | // Eric Aubourg
|
---|
| 5 | // Christophe Magneville
|
---|
| 6 | // Reza Ansari
|
---|
[2037] | 7 | // $Id: nooppr.h,v 1.8 2002-05-31 08:10:58 ansari Exp $
|
---|
[1738] | 8 |
|
---|
| 9 |
|
---|
[1487] | 10 | #ifndef NOOPPR_H
|
---|
| 11 | #define NOOPPR_H
|
---|
| 12 |
|
---|
| 13 | #include "toiprocessor.h"
|
---|
| 14 |
|
---|
| 15 | // Un processeur qui ne fait rien !
|
---|
[1488] | 16 | // Au mieux, copie son entree sur la sortie - peut avoir 2 entrees
|
---|
[1487] | 17 | // Peut introduire un delai de wsize
|
---|
| 18 |
|
---|
| 19 | class NoOpProcessor : public TOIProcessor {
|
---|
| 20 | public:
|
---|
| 21 | NoOpProcessor(int wsz=0);
|
---|
| 22 | // ~NoOpProcessor();
|
---|
| 23 |
|
---|
| 24 | inline int WSize() const { return wsize; }
|
---|
[2033] | 25 | inline void SetWSize(int wsz) { if (wsz > 1) wsize = wsz; }
|
---|
[2037] | 26 | inline void SetDelay2(bool fg) { delay2 = fg; }
|
---|
[1487] | 27 | inline int_8 ProcessedSampleCount() const { return totnscount; }
|
---|
| 28 |
|
---|
[1994] | 29 | inline void AcceptNoInput(double val=0., long flg=0)
|
---|
| 30 | { acceptnoinput = true; defval = val; defflag = flg; }
|
---|
| 31 |
|
---|
[1762] | 32 | virtual void PrintStatus(::ostream & os) ; // const plus tard
|
---|
[1487] | 33 |
|
---|
| 34 | virtual void init();
|
---|
| 35 | virtual void run();
|
---|
| 36 |
|
---|
| 37 | protected:
|
---|
| 38 | int_8 totnscount; // Nombre total d'echantillon processe
|
---|
| 39 | int wsize; // Taille de fenetre de travail
|
---|
[1994] | 40 |
|
---|
| 41 | bool acceptnoinput;
|
---|
[2037] | 42 | bool delay2;
|
---|
[1994] | 43 | double defval;
|
---|
| 44 | long defflag;
|
---|
[1487] | 45 | };
|
---|
| 46 |
|
---|
| 47 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.