1 #ifndef GAUDIKERNEL_ISVCMANAGER_H 2 #define GAUDIKERNEL_ISVCMANAGER_H 11 #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 ) 76 #if !defined( GAUDI_V22_API ) || defined( G22_NEW_SVCLOCATOR ) 115 #if !defined( GAUDI_V22_API ) || defined( G22_NEW_SVCLOCATOR ) 188 virtual bool loopCheckEnabled()
const = 0;
190 virtual void setLoopCheckEnabled(
bool en =
true ) = 0;
193 #endif // GAUDIKERNEL_ISVCMANAGER_H constexpr static const auto FAILURE
DeclareInterfaceID(IComponentManager, 1, 0)
InterfaceID.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
virtual StatusCode reinitializeServices()
Reinitializes the list of "active" services.
virtual StatusCode restartServices()
Restarts the list of "active" services.
The ISvcManager is the interface implemented by the Service Factory in the Application Manager to sup...
virtual StatusCode stopServices()
Stops the list of "active" services.
virtual StatusCode createService(const std::string &svctype, const std::string &svcname, IService *&svc)
Creates and instance of a service type that has been declared beforehand and assigns it a name...
virtual StatusCode declareSvcFactory(const ISvcFactory &, const std::string &)
Declare an abstract factory for a given service type.
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 addService(const std::string &typ, const std::string &nam, int prio)
Add a service to the "active" list of services of the factory.
virtual StatusCode initializeServices()
Initializes the list of "active" services.
virtual StatusCode initialize()=0
Initialization (from CONFIGURED to INITIALIZED).
constexpr static const auto SUCCESS
virtual StatusCode finalizeServices()
Finalizes the list of "active" services.
virtual StatusCode restart()=0
Initialization (from RUNNING to RUNNING, via INITIALIZED).
virtual StatusCode finalize()=0
Finalize (from INITIALIZED to CONFIGURED).
virtual StatusCode startServices()
Starts the list of "active" services.
virtual StatusCode getFactory(const std::string &, const ISvcFactory *&) const
Access to service factory by name to create unmanaged services.