1 #include "GaudiKernel/IService.h"
2 #include "GaudiKernel/ISvcLocator.h"
3 #include "GaudiKernel/MsgStream.h"
4 #include "GaudiKernel/ThreadGaudi.h"
5 #include "GaudiKernel/ServiceLocatorHelper.h"
27 auto theSvc =
service(name, quiet,
false);
33 <<
"ServiceLocatorHelper::locateService: wrong interface id "
34 << iid <<
" for service " << name <<
endmsg;
43 auto theSvc =
service(name,
false,
true);
49 <<
"ServiceLocatorHelper::createService: wrong interface id "
50 << iid <<
" for service " << name <<
endmsg;
57 const std::string&
name,
76 <<
"ServiceLocatorHelper::service: found service " << name <<
endmsg;
82 <<
"ServiceLocatorHelper::service: can not locate service "
ISvcLocator * serviceLocator() 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.
GAUDI_API bool isGaudiThreaded(const std::string &name)
test if current Gaudi object is running /will run in a thread
bool isSuccess() const
Test for a status code of SUCCESS.
std::string threadName() const
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
StatusCode createService(const std::string &name, const InterfaceID &iid, void **ppSvc) const