2 #ifndef GAUDIKERNEL_ISVCMANAGER_H
3 #define GAUDIKERNEL_ISVCMANAGER_H
12 #if defined(GAUDI_V20_COMPAT) || (!defined(GAUDI_V22_API) || defined(G22_NEW_SVCLOCATOR))
34 static const int DEFAULT_SVC_PRIORITY = 100;
43 #if !defined(GAUDI_V22_API) || defined(G22_NEW_SVCLOCATOR)
50 return addService(Gaudi::Utils::TypeNameString(nam,typ), prio);
59 virtual StatusCode addService(
const Gaudi::Utils::TypeNameString& nametype,
int prio = DEFAULT_SVC_PRIORITY) = 0;
75 #if !defined(GAUDI_V22_API) || defined(G22_NEW_SVCLOCATOR)
82 virtual StatusCode declareSvcFactory(
const ISvcFactory& ,
104 virtual SmartIF<IService>& createService(
const Gaudi::Utils::TypeNameString& nametype) = 0;
106 #if !defined(GAUDI_V22_API) || defined(G22_NEW_SVCLOCATOR)
134 const ISvcFactory*& )
const {
176 virtual int getPriority(
const std::string& name)
const = 0;
180 virtual bool loopCheckEnabled()
const = 0;
182 virtual void setLoopCheckEnabled(
bool en =
true) = 0;
186 #endif // GAUDIKERNEL_ISVCMANAGER_H