00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #define DBCNV_DbEVENTCNVSVC_CPP
00016
00017
00018
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
00034
00035 IDataProviderSvc *pIDP = 0;
00036
00037 status = svcLocator->getService("EventDataSvc", IID_IDataProviderSvc, (IInterface*&)pIDP);
00038 if ( !status.isSuccess() ) return status;
00039
00040
00041 status = setStore ( pIDP );
00042 if ( !status.isSuccess() ) return status;
00043 }
00044 return status;
00045 }
00046
00048 StatusCode DbEventCnvSvc::updateServiceState(IOpaqueAddress* ) {
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 }