Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
Master_axl.h
1/*---------------------------------------------------------------------------*/
2/*---------------------------------------------------------------------------*/
3// #WARNING#: This file has been generated automatically. Do not edit.
4// Arcane version 1.0 : 11/18/2024 02:52:35
5/*---------------------------------------------------------------------------*/
6/*---------------------------------------------------------------------------*/
7
8#ifndef ARCANE_CASEOPTION_AXLSTAR_ARCANE_MASTER_H
9#define ARCANE_CASEOPTION_AXLSTAR_ARCANE_MASTER_H
10
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/String.h"
15
16#include "arcane/CaseOptions.h"
17#include "arcane/CaseOptionsMulti.h"
18#include "arcane/CaseOptionBuildInfo.h"
19#include "arcane/XmlNodeList.h"
20#include "arcane/CaseOptionService.h"
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25ARCANE_BEGIN_NAMESPACE
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
32{
33public:
34
35 /*-------------------------------------------------------------------------*/
36 /*--------------------------- Complex Options -----------------------------*/
37 /*-------------------------------------------------------------------------*/
38
39 /*-------------------------------------------------------------------------*/
40 /*--------------------------- Non Complex Options -------------------------*/
41 /*-------------------------------------------------------------------------*/
42
44 : m_case_options(new Arcane::CaseOptions(cm,"master"))
45 , globalService(Arcane::CaseOptionBuildInfo(_configList(),
46 /* name */ "global-service", _element(),
47 /* default */ Arcane::String(),
48 /* min-occurs */ 0,
49 /* max-occurs */ -1,
50 /* optional */ false),
51 /* allow-null */ false)
52 {
53
54globalService.addAlternativeNodeName(
55 /* language */ Arcane::String("fr"),
56 /* alternative name */ Arcane::String("service-global"));
57addAlternativeNodeName(
58 /* language */ Arcane::String("en"),
59 /* alternative name */ Arcane::String("master-module"));
60addAlternativeNodeName(
61 /* language */ Arcane::String("fr"),
62 /* alternative name */ Arcane::String("module-maitre"));
63 }
64
65public:
66 // Interfaces for main CaseOptions
67
68
69
70
71 Arcane::ConstArrayView< Arcane::ITimeLoopService* > getGlobalService() { return globalService; }
72 // Interfaces for complex options
73
74
75public:
76
77 Arcane::ICaseOptions* caseOptions() const
78 {
79 return m_case_options.get();
80 }
81
82 Arcane::ICaseOptionList* configList() const
83 {
84 return m_case_options->configList();
85 }
86
87 void setCaseModule(Arcane::IModule* m)
88 {
89 m_case_options->setCaseModule(m);
90 }
91
92 void setCaseServiceInfo(Arcane::IServiceInfo* si)
93 {
94 m_case_options->setCaseServiceInfo(si);
95 }
96
97 void addAlternativeNodeName(const Arcane::String& lang,
98 const Arcane::String& name)
99 {
100 m_case_options->addAlternativeNodeName(lang,name);
101 }
102
103private:
104
105 Arcane::ICaseOptionList* _configList() const { return configList(); }
106 Arcane::XmlNode _element() const { return Arcane::XmlNode(); }
107
108private:
109
110 static Arcane::ICaseOptions* _createCaseOption(Arcane::ICaseMng* cm,Arcane::ICaseOptions* co);
111
113
114public:
115
116
118};
119
120/*---------------------------------------------------------------------------*/
121/*---------------------------------------------------------------------------*/
122
123ARCANE_END_NAMESPACE
124
125/*---------------------------------------------------------------------------*/
126/*---------------------------------------------------------------------------*/
127
128#endif
129
130
131
132/*---------------------------------------------------------------------------*/
133/*---------------------------------------------------------------------------*/
134// #WARNING#: This file has been generated automatically. Do not edit.
135// Arcane version 1.0 : 11/18/2024 02:52:35
136/*---------------------------------------------------------------------------*/
137/*---------------------------------------------------------------------------*/
138
139#ifndef ARCANE_MODULE_AXLSTAR_ARCANE_MASTER_H
140#define ARCANE_MODULE_AXLSTAR_ARCANE_MASTER_H
141
142/*---------------------------------------------------------------------------*/
143/*---------------------------------------------------------------------------*/
144
145#include "arcane/VariableTypes.h"
146#include "arcane/EntryPoint.h"
147#include "arcane/ISubDomain.h"
148#include "arcane/ModuleBuildInfo.h"
149#include "arcane/ModuleFactory.h"
150#include "arcane/ServiceRegisterer.h"
151#include "arcane/BasicModule.h"
152#include "arcane/ServiceInfo.h"
153
154/*---------------------------------------------------------------------------*/
155/*---------------------------------------------------------------------------*/
156
157namespace Arcane
158{
159class ISubDomain;
160class IModule;
161}
162
163/*---------------------------------------------------------------------------*/
164/*---------------------------------------------------------------------------*/
165
166ARCANE_BEGIN_NAMESPACE
167
168/*---------------------------------------------------------------------------*/
169/*---------------------------------------------------------------------------*/
170
171class CaseOptionsMaster;
172
173/*---------------------------------------------------------------------------*/
174/*---------------------------------------------------------------------------*/
175
178 : public Arcane::BasicModule
179{
180public:
181
182 static void fillServiceInfo(Arcane::ServiceInfo* si)
183 {
184 si->setCaseOptionsFileName("Master_arcane_std");
185 si->setAxlVersion(1.0);
186 si->setDefaultTagName(Arcane::String("master"));
187 si->setAxlContent(getAxlContent());
188 si->setTagName(Arcane::String("master-module"),Arcane::String("en"));
189 si->setTagName(Arcane::String("module-maitre"),Arcane::String("fr"));
190 }
191
192public:
193
196 , m_options(nullptr)
197 {
198 m_options = new CaseOptionsMaster(mb.subDomain()->caseMng());
199 m_options->setCaseModule(this);
200 addEntryPoint(this, "MasterBuild",
201 &ArcaneMasterObject::masterBuild,
204 }
205
206 virtual ~ArcaneMasterObject()
207 {
208 delete m_options;
209 }
210
211public:
212
214 virtual void masterBuild() = 0; // MasterBuild
215
217 CaseOptionsMaster* options() const { return m_options; }
218
219private:
220
223
224protected:
225
227
228private:
230 {
231 const char* str_content = "";
232 const Arcane::Byte* content = (const Arcane::Byte*)(str_content);
233 Arcane::Span<const Arcane::Byte> bytes(content,0);
234 int file_version = 1;
235 return Arcane::FileContent(bytes,file_version,"");
236 }
237
238};
239
240/*---------------------------------------------------------------------------*/
241/*---------------------------------------------------------------------------*/
242
243#define ARCANE_REGISTER_MODULE_MASTER(class_name) \
244 ARCANE_REGISTER_AXL_MODULE(class_name,Arcane::ModuleProperty("Master",true))
245
246/*---------------------------------------------------------------------------*/
247/*---------------------------------------------------------------------------*/
248
249ARCANE_END_NAMESPACE
250
251/*---------------------------------------------------------------------------*/
252/*---------------------------------------------------------------------------*/
253
254#endif
255
Generation de la classe de base du Module.
Definition Master_axl.h:179
virtual void masterBuild()=0
points d'entrée
static Arcane::FileContent getAxlContent()
Variables du module.
Definition Master_axl.h:229
CaseOptionsMaster * m_options
Options du jeu de données du module.
Definition Master_axl.h:222
CaseOptionsMaster * options() const
Options du jeu de données du module.
Definition Master_axl.h:217
Module basique.
Definition BasicModule.h:45
Informations pour construire une option de jeu de données.
Option du jeu de données de type liste de services.
Classe de base d'une liste d'options du jeu de données.
Definition CaseOptions.h:57
Description et contenu d'un fichier.
Definition FileContent.h:32
Interface du gestionnaire de cas.
Definition ICaseMng.h:56
Interface d'une liste d'options du jeu de données.
Interface d'une liste d'options du jeu de données.
static const char *const WBuild
appelé pour la construction du module
Definition IEntryPoint.h:44
@ PAutoLoadBegin
Chargé automatiquement au début. Cela signifie qu'un module possédant un point d'entrée avec cette pr...
Definition IEntryPoint.h:73
Interface d'un module.
Definition IModule.h:39
Interface des informations d'un service ou d'un module.
Interface du gestionnaire d'un sous-domaine.
Definition ISubDomain.h:74
virtual ICaseMng * caseMng()=0
Retourne le gestionnaire du jeu de données.
Informations d'un service.
Definition ServiceInfo.h:46
Informations pour construire un module.
ISubDomain * subDomain() const
Accès au sous-domaine associé
Noeud d'un arbre DOM.
Definition XmlNode.h:51
Vue constante d'un tableau de type T.
Encapsulation d'un pointeur avec compteur de référence.
Vue d'un tableau d'éléments de type T.
Definition Span.h:510
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
unsigned char Byte
Type d'un octet.
Definition UtilsTypes.h:142
void addEntryPoint(ModuleType *module, const char *name, void(ModuleType::*func)(), const String &where=IEntryPoint::WComputeLoop, int property=IEntryPoint::PNone)
Routine template permettant de référencer un point d'entrée dans un module.
Definition EntryPoint.h:166