19 auto theSvc =
service( name, quiet,
false );
21 StatusCode sc = theSvc->queryInterface( iid, ppSvc );
25 log() <<
MSG::ERROR <<
"ServiceLocatorHelper::locateService: wrong interface id " << iid <<
" for service " 33 auto theSvc =
service( name,
false,
true );
35 StatusCode sc = theSvc->queryInterface( iid, ppSvc );
38 log() <<
MSG::ERROR <<
"ServiceLocatorHelper::createService: wrong interface id " << iid <<
" for service " << name
68 log() <<
MSG::ERROR <<
"ServiceLocatorHelper::service: can not locate service " <<
name;
ISvcLocator * serviceLocator() const
bool isSuccess() const
Test for a status code of SUCCESS.
std::string threadName() const
GAUDI_API bool isGaudiThreaded(const std::string &name)
test if current Gaudi object is running /will run in a thread
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
std::string threadedName(const std::string &name) const
SmartIF< IService > service(const std::string &name, const bool quiet=false, const bool createIf=true) const
const std::string & requesterName() const
GAUDI_API std::string getGaudiThreadIDfromName(const std::string &name)
helper function to extract Gaudi Thread ID from thread copy name
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