Arcane  v3.16.0.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
24ARCANE_BEGIN_NAMESPACE
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
31class 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
55ARCANE_REGISTER_MODULE_MASTER(MasterModule);
56
57/*---------------------------------------------------------------------------*/
58/*---------------------------------------------------------------------------*/
59
60MasterModule::
61MasterModule(const ModuleBuildInfo& mb)
62: ArcaneMasterObject(mb)
63{
64}
65
66/*---------------------------------------------------------------------------*/
67/*---------------------------------------------------------------------------*/
68
69MasterModule::
70~MasterModule()
71{
72}
73
74/*---------------------------------------------------------------------------*/
75/*---------------------------------------------------------------------------*/
76
79{
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
90ARCANE_END_NAMESPACE
91
92/*---------------------------------------------------------------------------*/
93/*---------------------------------------------------------------------------*/
ISubDomain * subDomain() const override
Sous-domaine associé au module.
CaseOptionsMaster * options() const
Options du jeu de données du module.
Definition Master_axl.h:217
Interface du module principal.
virtual void addTimeLoopService(ITimeLoopService *tls)=0
Ajoute le service de boucle en temps.
virtual IModuleMaster * moduleMaster() const =0
Interface du module maître.
Interface d'un service opérant lors de la boucle en temps.
virtual void masterBuild()
points d'entrée
virtual VersionInfo versionInfo() const
Version du module.
Informations pour construire un module.
Informations sur une version.
Definition VersionInfo.h:46
Int32 Integer
Type représentant un entier.