1 #ifndef GAUDIKERNEL_SERVICELOCATORHELPER_H 2 #define GAUDIKERNEL_SERVICELOCATORHELPER_H 24 m_requesterName( requester.
name() )
31 m_requesterName( requesterName )
38 m_requesterName( requesterName )
41 #if !defined( GAUDI_V22_API ) || defined( G22_NEW_SVCLOCATOR ) 45 : m_svcLoc( svcLoc ), m_msgLog( log ), m_requesterName( requesterName )
52 return createIf ? createService( name, iid, ppSvc ) : locateService( name, iid, ppSvc,
true );
67 return service( name, quiet, createIf ).
as<T>();
ISvcLocator * serviceLocator() const
Definition of the MsgStream class used to transmit messages.
an helper to share the implementation of service() among the various kernel base classes ...
Small smart pointer class with automatic reference counting for IInterface.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
ServiceLocatorHelper(ISvcLocator &svcLoc, const INamedInterface &requester)
ServiceLocatorHelper(ISvcLocator &svcLoc, const std::string &loggedName, const std::string &requesterName)
std::string m_requesterName
SmartIF< IFace > as() const
return a new SmartIF instance to another interface
ServiceLocatorHelper(ISvcLocator &svcLoc, const std::string &requesterName)
This class is used for returning status codes from appropriate routines.
The IMessage is the interface implemented by the message service.
SmartIF< T > service(const std::string &name, const bool quiet=false, const bool createIf=true) const
IInterface compliant class extending IInterface with the name() method.
const std::string & requesterName() const
ServiceLocatorHelper(ISvcLocator &svcLoc, const MsgStream &log, const std::string &requesterName)
StatusCode getService(const std::string &name, bool createIf, const InterfaceID &iid, void **ppSvc) const