Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
ActionWrapperService.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/* ActionWrapperService.h (C) 2000-2025 */
9/* */
10/* Service wrapping an 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/*!
29 * \internal
30 *
31 * \brief Wrapper around an action.
32 */
33class ActionWrapperService
34: public IActionWrapperService
35{
36 public:
37
38 explicit ActionWrapperService(const ServiceBuildInfo& sbi);
39 ~ActionWrapperService() override;
40
41 public:
42
43 //! Parent of this service
44 IBase* serviceParent() const override;
45
46 //! Service information
47 IServiceInfo* serviceInfo() const override { return m_service_info; }
48
49 private:
50
51 IApplication* m_application = nullptr;
52 IServiceInfo* m_service_info = nullptr;
53};
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
58} // namespace Arcane
59
60/*---------------------------------------------------------------------------*/
61/*---------------------------------------------------------------------------*/
62
63#endif
IServiceInfo * serviceInfo() const override
Service information.
IBase * serviceParent() const override
Parent of this service.
Application interface.
Interface of the base class for main arcane objects.
Definition IBase.h:32
Interface for service or module information.
Structure containing the information to create a service.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --