The Gaudi Framework  master (d98a2936)
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 #pragma once
12 
14 #include <GaudiKernel/IService.h>
15 #include <GaudiKernel/SmartIF.h>
17 #include <string>
18 
19 class ISvcLocator;
20 
30 class GAUDI_API ISvcManager : virtual public IComponentManager {
31 public:
34 
35  static const int DEFAULT_SVC_PRIORITY = 100;
36 
42  virtual StatusCode addService( IService* svc, int prio = DEFAULT_SVC_PRIORITY ) = 0;
43 
49  virtual StatusCode addService( const Gaudi::Utils::TypeNameString& nametype, int prio = DEFAULT_SVC_PRIORITY ) = 0;
50 
56  virtual StatusCode removeService( IService* svc ) = 0;
57 
63  virtual StatusCode removeService( std::string_view nam ) = 0;
64 
71  virtual StatusCode declareSvcType( std::string svcname, std::string svctype ) = 0;
72 
89 
90  virtual int getPriority( std::string_view name ) const = 0;
91  virtual StatusCode setPriority( std::string_view name, int pri ) = 0;
92 
94  virtual bool loopCheckEnabled() const = 0;
96  virtual void setLoopCheckEnabled( bool en = true ) = 0;
97 };
IService
Definition: IService.h:26
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:42
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:30
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:19
StatusCode
Definition: StatusCode.h:64
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:15
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:49