27 auto theSvc =
service(name, quiet,
false);
29 StatusCode sc = theSvc->queryInterface(iid, ppSvc);
33 <<
"ServiceLocatorHelper::locateService: wrong interface id " 34 << iid <<
" for service " << name <<
endmsg;
43 auto theSvc =
service(name,
false,
true);
45 StatusCode sc = theSvc->queryInterface(iid, ppSvc);
49 <<
"ServiceLocatorHelper::createService: wrong interface id " 50 << iid <<
" for service " << name <<
endmsg;
76 <<
"ServiceLocatorHelper::service: found service " << name <<
endmsg;
82 <<
"ServiceLocatorHelper::service: can not locate service " 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 createService(const std::string &type, const std::string &name, const InterfaceID &iid, void **ppSvc) 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
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