All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RecordStream.cpp
Go to the documentation of this file.
1 // Framework include files
9 #include "RecordStream.h"
10 
11 // Define the algorithm factory for the standard output data writer
13 
14 // Standard Constructor
15 RecordStream::RecordStream(const std::string& name, ISvcLocator* pSvcLocator)
16  : OutputStream(name, pSvcLocator)
17 {
20  m_fireIncidents = false;
21  declareProperty("FireIncidents", m_fireIncidents=false);
22 }
23 
25  MsgStream log(msgSvc(), name());
26  log << MSG::INFO << "Set up File Summary Record" << endmsg;
27  if( !m_fireIncidents && log.level() <= MSG::VERBOSE )
28  log << MSG::VERBOSE << "will not fire incidents" << endmsg;
30  if( !sc.isSuccess() ) {
31  log << MSG::WARNING << "Error writing run summary record....." << endmsg;
32  }
33  return OutputStream::finalize();
34 }
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:26
MSG::Level level()
Retrieve output level.
Definition: MsgStream.h:112
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:75
Extension of OutputStream to write run records after last event.
Definition: RecordStream.h:14
virtual StatusCode execute()
Working entry point.
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:36
A small to stream Data I/O.
Definition: OutputStream.h:27
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
virtual StatusCode finalize()
Terminate OutputStream.
virtual const std::string & name() const
The identifying name of the algorithm object.
Definition: Algorithm.cpp:837
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
Definition: Algorithm.cpp:896
virtual StatusCode finalize()
Algorithm overload: finalization.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
bool m_fireIncidents
should I fire incidents for writing opening/closing etc?
Definition: OutputStream.h:123