Gaudi Framework, version v23r4

Home   Generated: Mon Sep 17 2012

RecordStream.cpp

Go to the documentation of this file.
00001 // $Id: RecordStream.cpp,v 1.1 2008/12/10 18:37:36 marcocle Exp $
00002 #define GAUDISVC_PERSISTENCYSVC_OUTPUTFSRSTREAM_CPP
00003 
00004 // Framework include files
00005 #include "GaudiKernel/AlgFactory.h"
00006 #include "GaudiKernel/IRegistry.h"
00007 #include "GaudiKernel/IDataManagerSvc.h"
00008 #include "GaudiKernel/IDataProviderSvc.h"
00009 #include "GaudiKernel/IOpaqueAddress.h"
00010 #include "GaudiKernel/DataStoreItem.h"
00011 #include "GaudiKernel/DataObject.h"
00012 #include "GaudiKernel/MsgStream.h"
00013 #include "RecordStream.h"
00014 
00015 // Define the algorithm factory for the standard output data writer
00016 DECLARE_ALGORITHM_FACTORY(RecordStream)
00017 
00018 // Standard Constructor
00019 RecordStream::RecordStream(const std::string& name, ISvcLocator* pSvcLocator)
00020  : OutputStream(name, pSvcLocator)
00021 {
00024   m_fireIncidents  = false;
00025   declareProperty("FireIncidents",      m_fireIncidents=false);
00026 }
00027 
00028 StatusCode RecordStream::finalize() {
00029   MsgStream log(msgSvc(), name());
00030   log << MSG::INFO << "Set up File Summary Record" << endmsg;
00031   if( !m_fireIncidents && log.level() <= MSG::VERBOSE )
00032     log << MSG::VERBOSE << "will not fire incidents" << endmsg;
00033   StatusCode sc = OutputStream::execute();
00034   if( !sc.isSuccess() )  {
00035     log << MSG::WARNING << "Error writing run summary record....." << endmsg;
00036   }
00037   return OutputStream::finalize();
00038 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Mon Sep 17 2012 13:49:27 for Gaudi Framework, version v23r4 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004