Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
IServiceMng.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* IServiceMng.h (C) 2000-2025 */
9/* */
10/* Service manager interface. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_ISERVICEMNG_H
13#define ARCANE_CORE_ISERVICEMNG_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28/*!
29 * \brief Service manager interface.
30 */
32{
33 public:
34
35 virtual ~IServiceMng() = default; //!< Releases resources.
36
37 public:
38
39 //! Associated trace manager
40 virtual ITraceMng* traceMng() const = 0;
41
42 //! Adds a reference to the service \a sv
44
45 //! Returns the list of singleton services
47
48 /*!
49 * Singleton service named \a name.
50 *
51 * Returns a null reference if no instance of name \a name exists.
52 */
54};
55
56/*---------------------------------------------------------------------------*/
57/*---------------------------------------------------------------------------*/
58
59} // End namespace Arcane
60
61/*---------------------------------------------------------------------------*/
62/*---------------------------------------------------------------------------*/
63
64#endif
Declarations of Arcane's general types.
Service manager interface.
Definition IServiceMng.h:32
virtual SingletonServiceInstanceRef singletonServiceReference(const String &name) const =0
virtual SingletonServiceInstanceCollection singletonServices() const =0
Returns the list of singleton services.
virtual ITraceMng * traceMng() const =0
Associated trace manager.
virtual void addSingletonInstance(SingletonServiceInstanceRef sv)=0
Adds a reference to the service sv.
virtual ~IServiceMng()=default
Releases resources.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Collection< SingletonServiceInstanceRef > SingletonServiceInstanceCollection
Collection of singleton service instances.
Ref< ISingletonServiceInstance > SingletonServiceInstanceRef
Reference to the 'ISingletonServiceInstance' interface.
Definition ArcaneTypes.h:91