9 auto theSvc =
service( name, quiet,
false );
11 StatusCode sc = theSvc->queryInterface( iid, ppSvc );
15 log() <<
MSG::ERROR <<
"ServiceLocatorHelper::locateService: wrong interface id " << iid <<
" for service " 22 auto theSvc =
service( name,
false,
true );
24 StatusCode sc = theSvc->queryInterface( iid, ppSvc );
27 log() <<
MSG::ERROR <<
"ServiceLocatorHelper::createService: wrong interface id " << iid <<
" for service " << name
39 const bool createIf )
const {
49 if ( !quiet ) {
log() <<
MSG::ERROR <<
"ServiceLocatorHelper::service: can not locate service " << name <<
endmsg; }
ISvcLocator * serviceLocator() const
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
This class is used for returning status codes from appropriate routines.
StatusCode locateService(const std::string &name, const InterfaceID &iid, void **ppSvc, bool quiet=false) const
constexpr static const auto FAILURE
SmartIF< IService > service(const std::string &name, const bool quiet=false, const bool createIf=true) const
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
StatusCode createService(const std::string &name, const InterfaceID &iid, void **ppSvc) const