Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
MasterModule.cc
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/* MasterModule.cc (C) 2000-2011 */
9/* */
10/* Master Module. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/ArcanePrecomp.h"
15
16#include "arcane/core/ITimeLoopService.h"
17#include "arcane/core/IModuleMaster.h"
18
19#include "arcane/std/Master_axl.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
33class MasterModule
34: public ArcaneMasterObject
35{
36 public:
37
38 MasterModule(const ModuleBuildInfo& cb);
39 ~MasterModule();
40
41 public:
42
43 virtual VersionInfo versionInfo() const { return VersionInfo(1, 1, 0); }
44
45 public:
46
47 virtual void masterBuild();
48
49 private:
50 private:
51};
52
53/*---------------------------------------------------------------------------*/
54/*---------------------------------------------------------------------------*/
55
56ARCANE_REGISTER_MODULE_MASTER(MasterModule);
57
58/*---------------------------------------------------------------------------*/
59/*---------------------------------------------------------------------------*/
60
61MasterModule::
62MasterModule(const ModuleBuildInfo& mb)
63: ArcaneMasterObject(mb)
64{
65}
66
67/*---------------------------------------------------------------------------*/
68/*---------------------------------------------------------------------------*/
69
70MasterModule::
71~MasterModule()
72{
73}
74
75/*---------------------------------------------------------------------------*/
76/*---------------------------------------------------------------------------*/
77
80{
82 for (Integer i = 0, is = options()->globalService.size(); i < is; ++i) {
83 ITimeLoopService* service = options()->globalService[i];
84 master->addTimeLoopService(service);
85 }
86}
87
88/*---------------------------------------------------------------------------*/
89/*---------------------------------------------------------------------------*/
90
91} // namespace Arcane
92
93/*---------------------------------------------------------------------------*/
94/*---------------------------------------------------------------------------*/
ISubDomain * subDomain() const override
Sub-domain associated with the module.
CaseOptionsMaster * options() const
Options du jeu de données du module.
Definition Master_axl.h:217
Interface of the main module.
virtual void addTimeLoopService(ITimeLoopService *tls)=0
Adds the time loop service.
virtual IModuleMaster * moduleMaster() const =0
Module master interface.
Interface of a service operating during the time loop.
virtual void masterBuild()
points d'entrée
virtual VersionInfo versionInfo() const
Module version.
Information for building a module.
Information about a version.
Definition VersionInfo.h:47
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.