Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

DbEventCnvSvc.cpp

Go to the documentation of this file.
00001 //====================================================================
00002 //      DbEventCnvSvc.cpp
00003 //--------------------------------------------------------------------
00004 //
00005 //      Package    : Db Converters
00006 //
00007 //      Author     : Markus Frank
00008 //  History    :
00009 // +---------+----------------------------------------------+---------
00010 // |    Date |                 Comment                      | Who     
00011 // +---------+----------------------------------------------+---------
00012 // | 21/04/99| Initial version.                             | MF
00013 // +---------+----------------------------------------------+---------
00014 //====================================================================
00015 #define  DBCNV_DbEVENTCNVSVC_CPP
00016 // $Header: /nfs/slac/g/glast/ground/cvs/GaudiDb/src/Services/DbEventCnvSvc.cpp,v 1.1.1.1 2001/04/18 21:13:35 tlindner Exp $
00017 
00018 // Include files
00019 #include "GaudiKernel/ISvcLocator.h"
00020 #include "GaudiKernel/IDataProviderSvc.h"
00021 #include "GaudiKernel/SvcFactory.h"
00022 #include "DbEventCnvSvc.h"
00023 
00024 static const SvcFactory<DbEventCnvSvc> s_DbEvtCnvSvcFactory;
00025 const ISvcFactory& DbEventCnvSvcFactory = s_DbEvtCnvSvcFactory;
00026 
00028 StatusCode DbEventCnvSvc::initialize()     {
00029   StatusCode status = DbCnvSvc::initialize();
00030   if ( status.isSuccess() )   {
00031     ISvcLocator* svcLocator = serviceLocator();
00032     //======================================================================
00033     // Add known converters to the service: 
00034     //======================================================================
00035     IDataProviderSvc *pIDP = 0;
00036     // Set event data service
00037     status = svcLocator->getService("EventDataSvc", IID_IDataProviderSvc, (IInterface*&)pIDP);
00038     if ( !status.isSuccess() ) return status;
00039 
00040     // Set proper data store
00041     status = setStore ( pIDP );
00042     if ( !status.isSuccess() ) return status;
00043   }
00044   return status;
00045 }
00046 
00048 StatusCode DbEventCnvSvc::updateServiceState(IOpaqueAddress* /* pAddress */ )    {
00049   return StatusCode::SUCCESS;
00050 }
00051 
00053 DbEventCnvSvc::DbEventCnvSvc(const std::string& name, ISvcLocator* svc)
00054  : DbCnvSvc(name, svc)
00055 {
00056 }
00057 
00059 DbEventCnvSvc::~DbEventCnvSvc()   {
00060 }

Generated at Wed Nov 21 12:22:19 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000