Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
HoneyComb2DMeshGenerator_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:36
5/*---------------------------------------------------------------------------*/
6/*---------------------------------------------------------------------------*/
7
8#ifndef ARCANE_CASEOPTION_AXLSTAR_HONEYCOMB2DMESHGENERATOR_H
9#define ARCANE_CASEOPTION_AXLSTAR_HONEYCOMB2DMESHGENERATOR_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
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24ARCANE_BEGIN_NAMESPACE
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
31{
32public:
33
34 /*-------------------------------------------------------------------------*/
35 /*--------------------------- Complex Options -----------------------------*/
36 /*-------------------------------------------------------------------------*/
37
38 /*-------------------------------------------------------------------------*/
39 /*--------------------------- Non Complex Options -------------------------*/
40 /*-------------------------------------------------------------------------*/
41
43 : m_case_options(co)
44 , origin(Arcane::CaseOptionBuildInfo(_configList(),
45 /* name */ "origin", _element(),
46 /* default */ Arcane::String(),
47 /* min-occurs */ 1,
48 /* max-occurs */ 1,
49 /* optional */ false))
50 , pitchSize(Arcane::CaseOptionBuildInfo(_configList(),
51 /* name */ "pitch-size", _element(),
52 /* default */ Arcane::String(),
53 /* min-occurs */ 1,
54 /* max-occurs */ 1,
55 /* optional */ false))
56 , nbLayer(Arcane::CaseOptionBuildInfo(_configList(),
57 /* name */ "nb-layer", _element(),
58 /* default */ Arcane::String(),
59 /* min-occurs */ 1,
60 /* max-occurs */ 1,
61 /* optional */ false))
62 {
63
64 }
65
66public:
67 // Interfaces for main CaseOptions
68
69 Arcane::Real2 getOrigin() { return origin(); }
70 Arcane::ICaseFunction* getOriginFunction() { return origin.function(); }
71 Arcane::IStandardFunction* getOriginStandardFunction() { return origin.standardFunction(); }
72 Arcane::Real getPitchSize() { return pitchSize(); }
73 Arcane::ICaseFunction* getPitchSizeFunction() { return pitchSize.function(); }
74 Arcane::IStandardFunction* getPitchSizeStandardFunction() { return pitchSize.standardFunction(); }
75 Arcane::Integer getNbLayer() { return nbLayer(); }
76 Arcane::ICaseFunction* getNbLayerFunction() { return nbLayer.function(); }
77 Arcane::IStandardFunction* getNbLayerStandardFunction() { return nbLayer.standardFunction(); }
78
79
80
81 // Interfaces for complex options
82
83
84public:
85
86 Arcane::ICaseOptions* caseOptions() const
87 {
88 return m_case_options.get();
89 }
90
91 Arcane::ICaseOptionList* configList() const
92 {
93 return m_case_options->configList();
94 }
95
96 void setCaseModule(Arcane::IModule* m)
97 {
98 m_case_options->setCaseModule(m);
99 }
100
101 void setCaseServiceInfo(Arcane::IServiceInfo* si)
102 {
103 m_case_options->setCaseServiceInfo(si);
104 }
105
106 void addAlternativeNodeName(const Arcane::String& lang,
107 const Arcane::String& name)
108 {
109 m_case_options->addAlternativeNodeName(lang,name);
110 }
111
112private:
113
114 Arcane::ICaseOptionList* _configList() const { return configList(); }
115 Arcane::XmlNode _element() const { return Arcane::XmlNode(); }
116
117private:
118
119 static Arcane::ICaseOptions* _createCaseOption(Arcane::ICaseMng* cm,Arcane::ICaseOptions* co);
120
122
123public:
124
125
127 Arcane::CaseOptionReal pitchSize;
129};
130
131/*---------------------------------------------------------------------------*/
132/*---------------------------------------------------------------------------*/
133
134ARCANE_END_NAMESPACE
135
136/*---------------------------------------------------------------------------*/
137/*---------------------------------------------------------------------------*/
138
139#endif
140
141
142
143/*---------------------------------------------------------------------------*/
144/*---------------------------------------------------------------------------*/
145// #WARNING#: This file has been generated automatically. Do not edit.
146// Arcane version 1.0 : 11/18/2024 02:52:36
147/*---------------------------------------------------------------------------*/
148/*---------------------------------------------------------------------------*/
149
150#ifndef ARCANE_MODULE_AXLSTAR_HONEYCOMB2DMESHGENERATOR_H
151#define ARCANE_MODULE_AXLSTAR_HONEYCOMB2DMESHGENERATOR_H
152
153/*---------------------------------------------------------------------------*/
154/*---------------------------------------------------------------------------*/
155
156#include "arcane/VariableTypes.h"
157#include "arcane/ServiceInfo.h"
158#include "arcane/ISubDomain.h"
159#include "arcane/ServiceBuildInfo.h"
160#include "arcane/ServiceFactory.h"
161#include "arcane/ServiceRegisterer.h"
162#include "arcane/BasicService.h"
163
164#ifndef ARCANE_HAS_SPECIFIC_BASIC_SERVICE
165// Code pour les versions de Arcane avant la 3.8 qui ne possèdent pas les
166// classes de base spécifiques pour les services
167namespace Arcane
168{
172}
173#endif
174
175/*---------------------------------------------------------------------------*/
176/*---------------------------------------------------------------------------*/
177
178namespace Arcane
179{
180
181/*---------------------------------------------------------------------------*/
182/*---------------------------------------------------------------------------*/
183
184class CaseOptionsHoneyComb2DMeshGenerator;
185
186/*---------------------------------------------------------------------------*/
187/*---------------------------------------------------------------------------*/
188
192 , public Arcane::IMeshBuilder
193{
194public:
195 // NOTE GG: attention code dupliqué avec 'ServiceT4CaseAndStrong'. Bien reporter les modifications
196 template <typename ServiceClassType> static void fillServiceInfo(Arcane::ServiceInfo* si)
197 {
198 si->setCaseOptionsFileName("HoneyComb2DMeshGenerator_arcane_std");
199 si->setAxlVersion(0.0);
200 si->setDefaultTagName("honey-comb2-d-mesh-generator");
201 si->setAxlContent(getAxlContent());
204);
205 }
206
207public:
208
220
223 {
224 delete m_options;
225 }
226
227
228public:
229
232
233private:
234
237
238protected:
239
241private:
243 {
244 const Arcane::Byte* content = (const Arcane::Byte*)"";
245 Arcane::Span<const Arcane::Byte> bytes(content,0);
246 int file_version = 1;
247 return Arcane::FileContent(bytes,file_version,"");
248 }
249};
250
251/*---------------------------------------------------------------------------*/
252/*---------------------------------------------------------------------------*/
253
254#define ARCANE_REGISTER_SERVICE_HONEYCOMB2DMESHGENERATOR(service_name,class_name) \
255 ARCANE_REGISTER_AXL_SERVICE(class_name,Arcane::ServiceProperty(#service_name,Arcane::ST_CaseOption,\
256 Arcane::SFP_None ))
257
258/*---------------------------------------------------------------------------*/
259/*---------------------------------------------------------------------------*/
260
261} // End namespace Arcane
262
263/*---------------------------------------------------------------------------*/
264/*---------------------------------------------------------------------------*/
265
266#endif
267
#define ARCANE_SERVICE_INTERFACE(ainterface)
Macro pour déclarer une interface lors de l'enregistrement d'un service.
Generation de la classe de base du Service.
CaseOptionsHoneyComb2DMeshGenerator * options() const
Options du jeu de données du service.
CaseOptionsHoneyComb2DMeshGenerator * m_options
Options du jeu de données du service.
static Arcane::FileContent getAxlContent()
Variables du service.
ArcaneHoneyComb2DMeshGeneratorObject(const Arcane::ServiceBuildInfo &sbi)
Constructeur.
Classe de base de service lié à un sous-domaine.
Informations pour construire une option de jeu de données.
Description et contenu d'un fichier.
Definition FileContent.h:32
Interface d'une fonction du jeu de données.
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.
Interface d'un service de création/lecture du maillage.
Interface d'un module.
Definition IModule.h:39
Interface des informations d'un service ou d'un module.
Interface gérant une fonction standard.
static void registerToServiceInfo(ServiceInfo *si, const Interfaces &... args)
Enregistre dans le service les fabriques pour les interfacs Interfaces.
Informations d'un service.
Definition ServiceInfo.h:46
Classe gérant un vecteur de réel de dimension 2.
Definition Real2.h:121
ICaseOptions * caseOptions() const
Accès au ICaseOptions associé.
Structure contenant les informations pour créer un service.
Noeud d'un arbre DOM.
Definition XmlNode.h:51
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