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;
73 virtual StatusCode removeService(
const std::string& nam ) = 0;
75 #if !defined(GAUDI_V22_API) || defined(G22_NEW_SVCLOCATOR)
82 virtual StatusCode declareSvcFactory(
const ISvcFactory& ,
83 const std::string& ) {
95 virtual StatusCode declareSvcType(
const std::string& svcname,
96 const std::string& svctype ) = 0;
104 virtual SmartIF<IService>& createService(
const Gaudi::Utils::TypeNameString& nametype) = 0;
106 #if !defined(GAUDI_V22_API) || defined(G22_NEW_SVCLOCATOR)
115 virtual StatusCode createService(
const std::string& svctype,
116 const std::string& svcname,
134 const ISvcFactory*& )
const {
176 virtual int getPriority(
const std::string& name)
const = 0;
177 virtual StatusCode setPriority(
const std::string& name,
int pri) = 0;
180 virtual bool loopCheckEnabled()
const = 0;
182 virtual void setLoopCheckEnabled(
bool en =
true) = 0;
186 #endif // GAUDIKERNEL_ISVCMANAGER_H