The Gaudi Framework  master (42b00024)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ISvcManager.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_ISVCMANAGER_H
12 #define GAUDIKERNEL_ISVCMANAGER_H
13 
14 // Include files
16 #include <GaudiKernel/IService.h>
17 #include <GaudiKernel/SmartIF.h>
19 #include <string>
20 
21 class ISvcLocator;
22 
32 class GAUDI_API ISvcManager : virtual public IComponentManager {
33 public:
36 
37  static const int DEFAULT_SVC_PRIORITY = 100;
38 
44  virtual StatusCode addService( IService* svc, int prio = DEFAULT_SVC_PRIORITY ) = 0;
45 
51  virtual StatusCode addService( const Gaudi::Utils::TypeNameString& nametype, int prio = DEFAULT_SVC_PRIORITY ) = 0;
52 
58  virtual StatusCode removeService( IService* svc ) = 0;
59 
65  virtual StatusCode removeService( std::string_view nam ) = 0;
66 
73  virtual StatusCode declareSvcType( std::string svcname, std::string svctype ) = 0;
74 
91 
92  virtual int getPriority( std::string_view name ) const = 0;
93  virtual StatusCode setPriority( std::string_view name, int pri ) = 0;
94 
96  virtual bool loopCheckEnabled() const = 0;
98  virtual void setLoopCheckEnabled( bool en = true ) = 0;
99 };
100 
101 #endif // GAUDIKERNEL_ISVCMANAGER_H
IService
Definition: IService.h:28
ISvcManager::setPriority
virtual StatusCode setPriority(std::string_view name, int pri)=0
IService.h
ISvcManager::declareSvcType
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.
ISvcManager::addService
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.
ISvcLocator
Definition: ISvcLocator.h:46
ISvcManager::loopCheckEnabled
virtual bool loopCheckEnabled() const =0
Get the value of the initialization loop check flag.
ISvcManager::addService
virtual StatusCode addService(IService *svc, int prio=DEFAULT_SVC_PRIORITY)=0
Add a service to the "active" list of services of the factory.
ISvcManager
Definition: ISvcManager.h:32
ISvcManager::removeService
virtual StatusCode removeService(std::string_view nam)=0
Remove a service from the "active" list of services of the factory.
SmartIF.h
Gaudi::Utils::TypeNameString
Helper class to parse a string of format "type/name".
Definition: TypeNameString.h:20
StatusCode
Definition: StatusCode.h:65
ISvcManager::DeclareInterfaceID
DeclareInterfaceID(ISvcManager, 4, 0)
InterfaceID.
ISvcManager::getPriority
virtual int getPriority(std::string_view name) const =0
SmartIF< IService >
TypeNameString.h
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77
IComponentManager.h
ISvcManager::setLoopCheckEnabled
virtual void setLoopCheckEnabled(bool en=true)=0
Set the value of the initialization loop check flag.
ISvcManager::removeService
virtual StatusCode removeService(IService *svc)=0
Remove a service from the "active" list of services of the factory.
ISvcManager::createService
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.
IComponentManager
Definition: IComponentManager.h:21
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:84