9#include "GaudiKernel/GenericAddress.h"
10#include "GaudiKernel/IConversionSvc.h"
11#include "GaudiKernel/IDataManagerSvc.h"
12#include "GaudiKernel/IDataProviderSvc.h"
13#include "GaudiKernel/ISvcLocator.h"
14#include "GaudiKernel/MsgStream.h"
15#include "GaudiKernel/RegistryEntry.h"
16#include "GaudiKernel/SmartIF.h"
43 info() <<
"McCnvSvc::initialize" << endmsg;
44 StatusCode status = ConversionSvc::initialize();
49 MsgStream log(
msgSvc(), name() );
50 log << MSG::DEBUG <<
"RootCnvSvc::finalize" << endmsg;
52 ConversionSvc::finalize().ignore();
54 return StatusCode::SUCCESS;
58 if ( IID_IMcCnvSvc == riid ) { *ppvInterface = (
McCnvSvc*)
this; }
62 return ConversionSvc::queryInterface( riid, ppvInterface );
65 return StatusCode::SUCCESS;
70 MsgStream log(
msgSvc(), name() );
71 static bool first =
true;
76 GenericAddress* pAddr =
dynamic_cast<GenericAddress*
>( pAddress );
79 if ( first ) { first =
false; }
80 return StatusCode::SUCCESS;
83 return StatusCode::FAILURE;
87 static unsigned char type = 0x10;
92 if ( wanted == 110 )
return new McEventCnv( serviceLocator().get() );
93 else return ConversionSvc::createConverter( typ, wanted, fac );
DECLARE_COMPONENT(BesBdkRc)
virtual StatusCode updateServiceState(IOpaqueAddress *pAddress)
Update state of the service.
static unsigned char storageType()
storage type
virtual StatusCode initialize()
Initialize the service.
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvInterface)
Override inherited queryInterface due to enhanced interface.
virtual ~McCnvSvc()
Standard Destructor.
virtual StatusCode finalize()
McCnvSvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
IConverter * createConverter(long typ, const CLID &wanted, const ICnvFactory *fac) override