Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ReplayOutputStream.h
Go to the documentation of this file.
1 #ifndef COMPONENT_REPLAYOUTPUTSTREAM_H
2 #define COMPONENT_REPLAYOUTPUTSTREAM_H 1
3 // Include files
4 // from Gaudi
6 #include "GaudiKernel/HashMap.h"
7 #include "GaudiKernel/SmartIF.h"
9 
10 class IAlgManager;
11 struct IDataManagerSvc;
12 
20 public:
23 
24  StatusCode initialize() override;
25  StatusCode start() override;
26  StatusCode execute() override;
27  StatusCode stop() override;
28  StatusCode finalize() override;
29 
32 
33 private:
35  void i_addOutputStream( const Gaudi::Utils::TypeNameString& outStream );
36 
39  public:
41  inline void operator()( const Gaudi::Utils::TypeNameString& outStream ) { m_ptr->i_addOutputStream( outStream ); }
42 
43  private:
45  };
46 
49  template <Gaudi::StateMachine::Transition TR>
51 
53  this, "OutputStreams", {}, "OutputStream instances that can be called."};
54 
56  OutStreamsMapType m_outputStreams;
57 
60 };
61 
62 #endif // COMPONENT_REPLAYOUTPUTSTREAM_H
Implementation of property with value of concrete type.
Definition: Property.h:352
OutStreamsMapType m_outputStreams
Internal storage for the OutputStreams to call.
StatusCode finalize() override
Algorithm finalization.
Header file for class GaudiAlgorithm.
The IAlgManager is the interface implemented by the Algorithm Factory in the Application Manager to s...
Definition: IAlgManager.h:27
StatusCode i_outStreamTransition()
Helper function to call the transition on the contained OutputStreams.
Helper class to parse a string of format "type/name".
StatusCode stop() override
Algorithm finalization.
Gaudi::Property< std::vector< std::string > > m_outputStreamNames
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
The useful base class for data processing algorithms.
void i_addOutputStream(const Gaudi::Utils::TypeNameString &outStream)
Add a new algorithm to the list of OutputStreams.
Helper class to fill the internal map of OutputStreams.
StatusCode execute() override
Algorithm execution.
StatusCode start() override
Algorithm initialization.
GaudiUtils::HashMap< std::string, SmartIF< IAlgorithm > > OutStreamsMapType
Class used to hold the OutputStream instances.
Common class providing an architecture-independent hash map.
Definition: HashMap.h:73
StatusCode initialize() override
Algorithm initialization.
void operator()(const Gaudi::Utils::TypeNameString &outStream)
SmartIF< IDataManagerSvc > m_evtMgr
OutStreamAdder(ReplayOutputStream *ptr)
SmartIF< IAlgManager > m_algMgr
GaudiAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.