All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ReplayOutputStream::OutStreamTrigger Class Reference

Helper class to call the required OutputStream. More...

Collaboration diagram for ReplayOutputStream::OutStreamTrigger:

Public Member Functions

 OutStreamTrigger (ReplayOutputStream *ptr)
 
void operator() (const std::string &name) const
 

Private Attributes

ReplayOutputStreamm_ptr
 

Detailed Description

Helper class to call the required OutputStream.

Definition at line 51 of file ReplayOutputStream.h.

Constructor & Destructor Documentation

ReplayOutputStream::OutStreamTrigger::OutStreamTrigger ( ReplayOutputStream ptr)
inline

Definition at line 53 of file ReplayOutputStream.h.

53 : m_ptr(ptr) {}

Member Function Documentation

void ReplayOutputStream::OutStreamTrigger::operator() ( const std::string &  name) const
inline

Definition at line 54 of file ReplayOutputStream.h.

54  {
56  if (alg.isValid()) {
57  if (!alg->isExecuted()) {
58  alg->sysExecute();
59  } else {
60  m_ptr->warning() << name
61  << " already executed for the current event" << endmsg;
62  }
63  } else {
64  m_ptr->warning() << "invalid OuputStream " << name << endmsg;
65  }
66  }
MsgStream & warning() const
shortcut for the method msgStream ( MSG::WARNING )
Definition: GaudiCommon.h:495
OutStreamsMapType m_outputStreams
Internal storage for the OutputStreams to call.
bool isValid() const
Allow for check if smart pointer is valid.
Definition: SmartIF.h:51
virtual const std::string & name() const
The identifying name of the algorithm object.
Definition: Algorithm.cpp:837
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244

Member Data Documentation

ReplayOutputStream* ReplayOutputStream::OutStreamTrigger::m_ptr
private

Definition at line 68 of file ReplayOutputStream.h.


The documentation for this class was generated from the following file: