1 #ifndef GAUDIKERNEL_SERVICELOCATORHELPER_H
2 #define GAUDIKERNEL_SERVICELOCATORHELPER_H
5 #include <GaudiKernel/StatusCode.h>
6 #include <GaudiKernel/SmartIF.h>
7 #include <GaudiKernel/IService.h>
23 m_requesterName(requester.name()) {
26 const std::string& loggedName,
27 const std::string& requesterName):
30 m_requesterName(requesterName) {
35 m_requesterName(requesterName) {
37 #if !defined(GAUDI_V22_API) || defined(G22_NEW_SVCLOCATOR)
40 const std::string& requesterName):
41 m_svcLoc(svcLoc), m_msgLog(log), m_requesterName(requesterName) {}
49 createService(name, iid, ppSvc) :
50 locateService(name, iid, ppSvc,
true));
53 StatusCode locateService(
const std::string& name,
56 bool quiet=
false)
const;
58 StatusCode createService(
const std::string& name,
63 const std::string& name,
67 SmartIF<IService> service(
const std::string& name,
const bool quiet=
false,
const bool createIf=
true)
const;
70 std::string threadName()
const;
71 std::string threadedName(
const std::string& name)
const;
72 bool isInThread()
const;
73 ISvcLocator* serviceLocator()
const {
return &m_svcLoc; }
75 const std::string& requesterName()
const {
return m_requesterName; }
78 std::string m_requesterName;
Definition of the MsgStream class used to transmit messages.
an helper to share the implementation of service() among the various kernel base classes $Id: ...
Small smart pointer class with automatic reference counting for IInterface.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
This class is used for returning status codes from appropriate routines.
The IMessage is the interface implemented by the message service.
IInterface compliant class extending IInterface with the name() method.
IInterface *PyHelper() getService(IInterface *app, char *name)