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

Last change on this file since 2224 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
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.8 2002-05-31 08:10:58 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 void SetDelay2(bool fg) { delay2 = fg; }
27 inline int_8 ProcessedSampleCount() const { return totnscount; }
28
29 inline void AcceptNoInput(double val=0., long flg=0)
30 { acceptnoinput = true; defval = val; defflag = flg; }
31
32 virtual void PrintStatus(::ostream & os) ; // const plus tard
33
34 virtual void init();
35 virtual void run();
36
37protected:
38 int_8 totnscount; // Nombre total d'echantillon processe
39 int wsize; // Taille de fenetre de travail
40
41 bool acceptnoinput;
42 bool delay2;
43 double defval;
44 long defflag;
45};
46
47#endif
Note: See TracBrowser for help on using the repository browser.