Go to the documentation of this file.
11 #ifndef GAUDIKERNEL_ISVCMANAGER_H
12 #define GAUDIKERNEL_ISVCMANAGER_H
21 #if defined( GAUDI_V20_COMPAT ) || ( !defined( GAUDI_V22_API ) || defined( G22_NEW_SVCLOCATOR ) )
43 static const int DEFAULT_SVC_PRIORITY = 100;
52 #if !defined( GAUDI_V22_API ) || defined( G22_NEW_SVCLOCATOR )
58 [[deprecated(
"use addService(type_name, prio) instead" )]]
virtual StatusCode
85 #if !defined( GAUDI_V22_API ) || defined( G22_NEW_SVCLOCATOR )
124 #if !defined( GAUDI_V22_API ) || defined( G22_NEW_SVCLOCATOR )
133 [[deprecated(
"use createService(type_name) instead" )]]
virtual StatusCode
201 #endif // GAUDIKERNEL_ISVCMANAGER_H
virtual StatusCode setPriority(std::string_view name, int pri)=0
virtual StatusCode declareSvcType(std::string svcname, std::string svctype)=0
Declare the type of the service to be used when crating a given service name.
virtual StatusCode addService(const Gaudi::Utils::TypeNameString &nametype, int prio=DEFAULT_SVC_PRIORITY)=0
Add a service to the "active" list of services of the factory.
virtual StatusCode reinitializeServices()
Reinitializes the list of "active" services.
virtual StatusCode start()=0
Start (from INITIALIZED to RUNNING).
virtual StatusCode finalizeServices()
Finalizes the list of "active" services.
virtual StatusCode initializeServices()
Initializes the list of "active" services.
virtual StatusCode getFactory(const std::string &, const ISvcFactory *&) const
Access to service factory by name to create unmanaged services.
virtual bool loopCheckEnabled() const =0
Get the value of the initialization loop check flag.
virtual StatusCode addService(IService *svc, int prio=DEFAULT_SVC_PRIORITY)=0
Add a service to the "active" list of services of the factory.
virtual StatusCode stop()=0
Stop (from RUNNING to INITIALIZED).
virtual StatusCode reinitialize()=0
Initialization (from INITIALIZED or RUNNING to INITIALIZED, via CONFIGURED).
virtual StatusCode removeService(std::string_view nam)=0
Remove a service from the "active" list of services of the factory.
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 restartServices()
Restarts the list of "active" services.
Helper class to parse a string of format "type/name".
virtual StatusCode initialize()=0
Initialization (from CONFIGURED to INITIALIZED).
DeclareInterfaceID(ISvcManager, 4, 0)
InterfaceID.
virtual int getPriority(std::string_view name) const =0
virtual StatusCode declareSvcFactory(const ISvcFactory &, const std::string &)
Declare an abstract factory for a given service type.
constexpr static const auto SUCCESS
virtual void setLoopCheckEnabled(bool en=true)=0
Set the value of the initialization loop check flag.
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 removeService(IService *svc)=0
Remove a service from the "active" list of services of the factory.
virtual SmartIF< IService > & createService(const Gaudi::Utils::TypeNameString &nametype)=0
Creates and instance of a service type that has been declared beforehand and assigns it a name.
constexpr static const auto FAILURE
virtual StatusCode stopServices()
Stops 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.