Gaudi Framework, version v21r8

Home   Generated: 17 Mar 2010

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 << MSG::VERBOSE << "will not fire incidents" << endmsg;
00032   StatusCode sc = OutputStream::execute();
00033   if( !sc.isSuccess() )  {
00034     log << MSG::WARNING << "Error writing run summary record....." << endmsg;
00035   }
00036   return OutputStream::finalize();
00037 }

Generated at Wed Mar 17 18:06:49 2010 for Gaudi Framework, version v21r8 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004