GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BlackHole.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2004 by Olivier Stezowski *
3  * stezow(AT)ipnl.in2p3.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
23 #ifndef _BlackHole
24 #define _BlackHole
25 
26 #ifndef ADF_NarvalInterface
27 #include "NarvalInterface.h"
28 #endif
29 
31 
34 {
35 private:
36  ULong64_t fConsumedBytes;
37 
38 public:
39  BlackHole();
40  virtual ~BlackHole();
41 
43  static void process_config (const Char_t *, UInt_t *) ;
44 
46  virtual void process_initialise (UInt_t *error_code);
47 
49  virtual void process_reset (UInt_t *error_code);
50 
51  virtual UInt_t ProcessBlock (ADF::FrameBlock &) ;
52 
53 };
54 
55 #endif
static void process_config(const Char_t *, UInt_t *)
to init globals (static) from a directory
Definition: BlackHole.cpp:49
virtual void process_reset(UInt_t *error_code)
Destructor implementation.
Definition: BlackHole.cpp:80
virtual UInt_t ProcessBlock(ADF::FrameBlock &)
virtual method to be implemented
Definition: BlackHole.cpp:59
A Block of Frames.
Definition: FrameBlock.h:43
virtual void process_initialise(UInt_t *error_code)
Constructor implementation.
Definition: BlackHole.cpp:72
black hole. It consumes data and just counts the number of bytes consumed
Definition: BlackHole.h:33
It defines the interface needed to be a consumer.
virtual ~BlackHole()
Definition: BlackHole.cpp:43
header file for NarvalInterface.cpp