| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

IDataStreamTool.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_IDATASTREAMTOOL_H
2 #define GAUDIKERNEL_IDATASTREAMTOOL_H 1
3
4 // Include files
5 // from STL
6 #include <string>
7
8 // from Gaudi
9 #include "GaudiKernel/IAlgTool.h"
10
11 class IEvtSelector;
12 class EventSelectorDataStream;
13
22 class GAUDI_API IDataStreamTool: virtual public IAlgTool {
23 public:
25 DeclareInterfaceID(IDataStreamTool,2,0);
26
27 typedef std::vector<std::string> StreamSpecs;
28 typedef long size_type;
29
30 virtual StatusCode initializeStream( EventSelectorDataStream* ) = 0;
31
32 virtual StatusCode finalizeStream( EventSelectorDataStream* ) = 0;
33
34 virtual StatusCode getNextStream( const EventSelectorDataStream* &, size_type & ) = 0;
35
36 virtual StatusCode getPreviousStream( const EventSelectorDataStream* &, size_type & ) = 0;
37
38 virtual StatusCode addStream(const std::string &) = 0;
39
40 virtual StatusCode addStreams(const StreamSpecs &) = 0;
41
42 virtual StatusCode eraseStream( const std::string& ) = 0;
43
44 virtual EventSelectorDataStream* getStream( size_type ) = 0;
45
46 virtual EventSelectorDataStream* getStream( const std::string& ) = 0;
47
48 virtual EventSelectorDataStream* lastStream() = 0;
49
50 virtual size_type size() = 0;
51
52 virtual StatusCode clear() = 0;
53
54 protected:
55
56 virtual StatusCode createSelector(const std::string& , const std::string& ,
57 IEvtSelector*&) = 0;
58
59 virtual StatusCode createStream(const std::string&, const std::string&,
60 EventSelectorDataStream*& ) = 0;
61
62 };
63 #endif // GAUDIKERNEL_IDATASTREAMTOOL_H
IDataStreamTool::StreamSpecs
std::vector< std::string > StreamSpecs
Definition: IDataStreamTool.h:27
IEvtSelector
The Event Selector Interface.
Definition: IEvtSelector.h:18
IAlgTool::DeclareInterfaceID
DeclareInterfaceID(IAlgTool, 4, 0)
InterfaceID.
std::string
STL class.
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
IAlgTool.h
IDataStreamTool::size_type
long size_type
Definition: IDataStreamTool.h:28
std::vector< std::string >
IDataStreamTool
Definition: IDataStreamTool.h:22
EventSelectorDataStream
Definition of class EventSelectorDataStream.
Definition: EventSelectorDataStream.h:45
IAlgTool
The interface implemented by the AlgTool base class.
Definition: IAlgTool.h:23
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107