The Gaudi Framework  master (37c0b60a)
RecordStream.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 // Framework include files
12 #include "RecordStream.h"
13 #include <GaudiKernel/DataObject.h>
18 #include <GaudiKernel/IRegistry.h>
19 #include <GaudiKernel/MsgStream.h>
20 
21 // Define the algorithm factory for the standard output data writer
23 
24 // Standard Constructor
25 RecordStream::RecordStream( const std::string& name, ISvcLocator* pSvcLocator ) : OutputStream( name, pSvcLocator ) {
28  declareProperty( "FireIncidents", m_fireIncidents = false, "if to fire incidents for writing opening/closing etc" );
29 }
30 
32  info() << "Set up File Summary Record" << endmsg;
33  if ( !m_fireIncidents && msgLevel( MSG::VERBOSE ) ) verbose() << "will not fire incidents" << endmsg;
35  if ( !sc.isSuccess() ) { warning() << "Error writing run summary record....." << endmsg; }
36  return OutputStream::finalize();
37 }
OutputStream
A small to stream Data I/O.
Definition: OutputStream.h:38
RecordStream::finalize
StatusCode finalize() override
Algorithm overload: finalization.
Definition: RecordStream.cpp:31
DataStoreItem.h
OutputStream::m_fireIncidents
bool m_fireIncidents
should I fire incidents for writing opening/closing etc? in the baseclass, always fire the incidents ...
Definition: OutputStream.h:93
StatusCode::isSuccess
bool isSuccess() const
Definition: StatusCode.h:314
ISvcLocator
Definition: ISvcLocator.h:46
OutputStream::finalize
StatusCode finalize() override
Terminate OutputStream.
Definition: OutputStream.cpp:148
CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > >::msgLevel
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)
Definition: CommonMessaging.h:148
IDataProviderSvc.h
StatusCode
Definition: StatusCode.h:65
IOpaqueAddress.h
genconfuser.verbose
verbose
Definition: genconfuser.py:28
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:202
IRegistry.h
MSG::VERBOSE
@ VERBOSE
Definition: IMessageSvc.h:25
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77
DataObject.h
std
STL namespace.
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginServiceV1.h:46
OutputStream::execute
StatusCode execute() override
Working entry point.
Definition: OutputStream.cpp:161
RecordStream
Definition: RecordStream.h:23
RecordStream.h
IDataManagerSvc.h
MsgStream.h