Arcane  v3.16.4.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
ActionWrapperService.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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/* ActionWrapperService.h (C) 2000-2025 */
9/* */
10/* Service faisant un wrapper autour d'une action. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_ACTIONWRAPPER_H
13#define ARCANE_CORE_ACTIONWRAPPER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/core/IActionWrapperService.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27/*!
28 * \internal
29 *
30 * \brief Wrapper autour d'une action.
31 */
32class ActionWrapperService
33: public IActionWrapperService
34{
35 public:
36
37 explicit ActionWrapperService(const ServiceBuildInfo& sbi);
38 ~ActionWrapperService() override;
39
40 public:
41
42 //! Parent de ce service
43 IBase* serviceParent() const override;
44
45 //! Informations du service
46 IServiceInfo* serviceInfo() const override { return m_service_info; }
47
48 private:
49
50 IApplication* m_application = nullptr;
51 IServiceInfo* m_service_info = nullptr;
52};
53
54/*---------------------------------------------------------------------------*/
55/*---------------------------------------------------------------------------*/
56
57} // namespace Arcane
58
59/*---------------------------------------------------------------------------*/
60/*---------------------------------------------------------------------------*/
61
62#endif
IServiceInfo * serviceInfo() const override
Informations du service.
IBase * serviceParent() const override
Parent de ce service.
Interface de l'application.
Interface de la classe de base des objets principaux arcane.
Definition IBase.h:31
Interface des informations d'un service ou d'un module.
Structure contenant les informations pour créer un service.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-