Go to the documentation of this file.
17 #include <fmt/format.h>
23 StatusCode sc = theSvc->queryInterface( iid, ppSvc );
27 log() <<
MSG::ERROR <<
"ServiceLocatorHelper::locateService: wrong interface id " << iid <<
" for service "
36 StatusCode sc = theSvc->queryInterface( iid, ppSvc );
39 log() <<
MSG::ERROR <<
"ServiceLocatorHelper::createService: wrong interface id " << iid <<
" for service " <<
name
46 void** ppSvc )
const {
60 if ( !quiet ) {
log() <<
MSG::ERROR <<
"ServiceLocatorHelper::service: can not locate service " <<
name <<
endmsg; }
SmartIF< IService > service(std::string_view name, const bool quiet=false, const bool createIf=true) const
StatusCode locateService(std::string_view name, const InterfaceID &iid, void **ppSvc, bool quiet=false) const
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
constexpr static const auto FAILURE
ISvcLocator * serviceLocator() const
StatusCode createService(std::string_view name, const InterfaceID &iid, void **ppSvc) const