Arcane
v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
MasterModule.cc
1
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2
//-----------------------------------------------------------------------------
3
// Copyright 2000-2022 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
/* Module maître. */
11
/*---------------------------------------------------------------------------*/
12
/*---------------------------------------------------------------------------*/
13
14
#include "arcane/utils/ArcanePrecomp.h"
15
16
#include "arcane/ITimeLoopService.h"
17
#include "arcane/IModuleMaster.h"
18
19
#include "arcane/std/Master_axl.h"
20
21
/*---------------------------------------------------------------------------*/
22
/*---------------------------------------------------------------------------*/
23
24
ARCANE_BEGIN_NAMESPACE
25
26
/*---------------------------------------------------------------------------*/
27
/*---------------------------------------------------------------------------*/
31
class
MasterModule
32
:
public
ArcaneMasterObject
33
{
34
public
:
35
36
MasterModule
(
const
ModuleBuildInfo
&
cb
);
37
~MasterModule
();
38
39
public
:
40
41
virtual
VersionInfo
versionInfo
()
const
{
return
VersionInfo
(1,1,0); }
42
43
public
:
44
45
virtual
void
masterBuild();
46
47
private
:
48
49
private
:
50
};
51
52
/*---------------------------------------------------------------------------*/
53
/*---------------------------------------------------------------------------*/
54
55
ARCANE_REGISTER_MODULE_MASTER(MasterModule);
56
57
/*---------------------------------------------------------------------------*/
58
/*---------------------------------------------------------------------------*/
59
60
MasterModule::
61
MasterModule(
const
ModuleBuildInfo& mb)
62
: ArcaneMasterObject(mb)
63
{
64
}
65
66
/*---------------------------------------------------------------------------*/
67
/*---------------------------------------------------------------------------*/
68
69
MasterModule::
70
~MasterModule()
71
{
72
}
73
74
/*---------------------------------------------------------------------------*/
75
/*---------------------------------------------------------------------------*/
76
77
void
MasterModule::
78
masterBuild
()
79
{
80
IModuleMaster
*
master
=
subDomain
()->
moduleMaster
();
81
for
( Integer i=0, is=
options
()->globalService.size(); i<is; ++i ){
82
ITimeLoopService
* service =
options
()->globalService[i];
83
master
->addTimeLoopService(service);
84
}
85
}
86
87
/*---------------------------------------------------------------------------*/
88
/*---------------------------------------------------------------------------*/
89
90
ARCANE_END_NAMESPACE
91
92
/*---------------------------------------------------------------------------*/
93
/*---------------------------------------------------------------------------*/
Arcane::AbstractModule::subDomain
ISubDomain * subDomain() const override
Sous-domaine associé au module.
Definition
AbstractModule.h:88
Arcane::ArcaneMasterObject
Generation de la classe de base du Module.
Definition
Master_axl.h:179
Arcane::ArcaneMasterObject::options
CaseOptionsMaster * options() const
Options du jeu de données du module.
Definition
Master_axl.h:217
Arcane::IModuleMaster
Interface du module principal.
Definition
IModuleMaster.h:44
Arcane::ISubDomain::moduleMaster
virtual IModuleMaster * moduleMaster() const =0
Interface du module maître.
Arcane::ITimeLoopService
Interface d'un service opérant lors de la boucle en temps.
Definition
ITimeLoopService.h:38
Arcane::LimaWrapper
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition
Lima.cc:120
Arcane::MasterModule
Module maître.
Definition
MasterModule.cc:33
Arcane::MasterModule::masterBuild
virtual void masterBuild()
points d'entrée
Definition
MasterModule.cc:78
Arcane::MasterModule::versionInfo
virtual VersionInfo versionInfo() const
Version du module.
Definition
MasterModule.cc:41
Arcane::ModuleBuildInfo
Informations pour construire un module.
Definition
ModuleBuildInfo.h:38
Arcane::VersionInfo
Informations sur une version.
Definition
VersionInfo.h:46
arcane
std
MasterModule.cc
Généré le Lundi 18 Novembre 2024 03:01:43 pour Arcane par
1.9.8