Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
IModuleMaster.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/* IModuleMaster.h (C) 2000-2025 */
9/* */
10/* Interface of the Master module. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_IMODULEMASTER_H
13#define ARCANE_CORE_IMODULEMASTER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28/*!
29 * \internal
30 * \brief Interface of the main module.
31 *
32 * The main module is the module framing the different actions of the entry points.
33 * See the \a ModuleMaster implementation for more details.
34 */
35class ARCANE_CORE_EXPORT IModuleMaster
36{
37 public:
38
39 //! Destructor.
40 /*! Frees the resources */
41 virtual ~IModuleMaster() {}
42
43 public:
44
45 //! Creation of an instance of IModuleMaster
46 /*! Currently implemented in \a ModuleMaster */
48
49 public:
50
51 //! Returns the options of this module
53
54 //! Conversion to standard module
55 /*! The success of the conversion is linked to the implementation of \a IModuleMaster as \a IModule */
56 virtual IModule* toModule() = 0;
57
58 //! Access to 'common' variables shared between all services and modules
60
61 //! Adds the time loop service
62 virtual void addTimeLoopService(ITimeLoopService* tls) = 0;
63
64 /*!
65 * \brief Outputs the standard curves.
66 *
67 * This call adds the standard curves to the ITimeHistoryMng
68 * (such as CPUTime, ElapsedTime, TotalMemory, ...) for the current iteration.
69 * By default, if this function is not called, the
70 * outputs occur at the end of the iteration.
71 */
72 virtual void dumpStandardCurves() = 0;
73};
74
75/*---------------------------------------------------------------------------*/
76/*---------------------------------------------------------------------------*/
77
78} // namespace Arcane
79
80/*---------------------------------------------------------------------------*/
81/*---------------------------------------------------------------------------*/
82
83#endif
Declarations of Arcane's general types.
Common variables of a case.
virtual void dumpStandardCurves()=0
Outputs the standard curves.
static IModuleMaster * createDefault(const ModuleBuildInfo &)
Creation of an instance of IModuleMaster.
virtual IModule * toModule()=0
Conversion to standard module.
virtual void addTimeLoopService(ITimeLoopService *tls)=0
Adds the time loop service.
virtual CommonVariables * commonVariables()=0
Access to 'common' variables shared between all services and modules.
virtual CaseOptionsMain * caseoptions()=0
Returns the options of this module.
virtual ~IModuleMaster()
Destructor.
Interface of a module.
Definition IModule.h:40
Interface of a service operating during the time loop.
Information for building a module.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --