source: Sophya/trunk/ArchTOIPipe/Processors/nooppr.h@ 2033

Last change on this file since 2033 was 2033, checked in by ansari, 23 years ago

amelioration du programme de test mesovh2 - Reza 30/5/2002

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