2 #ifndef GAUDIKERNEL_ISVCMANAGER_H
3 #define GAUDIKERNEL_ISVCMANAGER_H
6 #include "GaudiKernel/IComponentManager.h"
7 #include "GaudiKernel/SmartIF.h"
8 #include "GaudiKernel/TypeNameString.h"
12 #if defined(GAUDI_V20_COMPAT) || (!defined(GAUDI_V22_API) || defined(G22_NEW_SVCLOCATOR))
14 #include "GaudiKernel/IService.h"
34 static const int DEFAULT_SVC_PRIORITY = 100;
43 #if !defined(GAUDI_V22_API) || defined(G22_NEW_SVCLOCATOR)
49 virtual StatusCode addService(
const std::string& typ,
const std::string& nam,
int prio ){
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;
106 #if !defined(GAUDI_V22_API) || defined(G22_NEW_SVCLOCATOR)
115 virtual StatusCode createService(
const std::string& svctype,
116 const std::string& svcname,
133 virtual StatusCode getFactory(
const std::string& ,
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
DeclareInterfaceID(IComponentManager, 1, 0)
InterfaceID.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
The ISvcManager is the interface implemented by the Service Factory in the Application Manager to sup...
virtual StatusCode start()=0
Start (from INITIALIZED to RUNNING).
TYPE * get() const
Get interface pointer.
Helper class to parse a string of format "type/name".
virtual StatusCode stop()=0
Stop (from RUNNING to INITIALIZED).
virtual StatusCode reinitialize()=0
Initialization (from INITIALIZED or RUNNING to INITIALIZED, via CONFIGURED).
General service interface definition.
This class is used for returning status codes from appropriate routines.
virtual StatusCode initialize()=0
Initialization (from CONFIGURED to INITIALIZED).
virtual StatusCode restart()=0
Initialization (from RUNNING to RUNNING, via INITIALIZED).
virtual StatusCode finalize()=0
Finalize (from INITIALIZED to CONFIGURED).
virtual unsigned long addRef()=0
Increment the reference count of Interface instance.