Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ArcaneMeshConverter_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:34
5/*---------------------------------------------------------------------------*/
6/*---------------------------------------------------------------------------*/
7
8#ifndef ARCANE_CASEOPTION_AXLSTAR_ARCANE_ARCANEMESHCONVERTER_H
9#define ARCANE_CASEOPTION_AXLSTAR_ARCANE_ARCANEMESHCONVERTER_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 , writerServiceName(Arcane::CaseOptionBuildInfo(_configList(),
45 /* name */ "writer-service-name", _element(),
46 /* default */ Arcane::String(),
47 /* min-occurs */ 1,
48 /* max-occurs */ 1,
49 /* optional */ false))
50 , fileName(Arcane::CaseOptionBuildInfo(_configList(),
51 /* name */ "file-name", _element(),
52 /* default */ Arcane::String(),
53 /* min-occurs */ 1,
54 /* max-occurs */ 1,
55 /* optional */ false))
56 {
57
58writerServiceName.addAlternativeNodeName(
59 /* language */ Arcane::String("fr"),
60 /* alternative name */ Arcane::String("nom-service-ecriture"));
61fileName.addAlternativeNodeName(
62 /* language */ Arcane::String("fr"),
63 /* alternative name */ Arcane::String("nom-fichier"));
64addAlternativeNodeName(
65 /* language */ Arcane::String("fr"),
66 /* alternative name */ Arcane::String("convertisseur-maillage"));
67 }
68
69public:
70 // Interfaces for main CaseOptions
71
72 Arcane::String getWriterServiceName() { return writerServiceName(); }
73 Arcane::ICaseFunction* getWriterServiceNameFunction() { return writerServiceName.function(); }
74 Arcane::IStandardFunction* getWriterServiceNameStandardFunction() { return writerServiceName.standardFunction(); }
75 Arcane::String getFileName() { return fileName(); }
76 Arcane::ICaseFunction* getFileNameFunction() { return fileName.function(); }
77 Arcane::IStandardFunction* getFileNameStandardFunction() { return fileName.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
126 Arcane::CaseOptionString writerServiceName;
128};
129
130/*---------------------------------------------------------------------------*/
131/*---------------------------------------------------------------------------*/
132
133ARCANE_END_NAMESPACE
134
135/*---------------------------------------------------------------------------*/
136/*---------------------------------------------------------------------------*/
137
138#endif
139
140
141
142/*---------------------------------------------------------------------------*/
143/*---------------------------------------------------------------------------*/
144// #WARNING#: This file has been generated automatically. Do not edit.
145// Arcane version 1.0 : 11/18/2024 02:52:34
146/*---------------------------------------------------------------------------*/
147/*---------------------------------------------------------------------------*/
148
149#ifndef ARCANE_MODULE_AXLSTAR_ARCANE_ARCANEMESHCONVERTER_H
150#define ARCANE_MODULE_AXLSTAR_ARCANE_ARCANEMESHCONVERTER_H
151
152/*---------------------------------------------------------------------------*/
153/*---------------------------------------------------------------------------*/
154
155#include "arcane/VariableTypes.h"
156#include "arcane/ServiceInfo.h"
157#include "arcane/ISubDomain.h"
158#include "arcane/ServiceBuildInfo.h"
159#include "arcane/ServiceFactory.h"
160#include "arcane/ServiceRegisterer.h"
161#include "arcane/BasicService.h"
162
163#ifndef ARCANE_HAS_SPECIFIC_BASIC_SERVICE
164// Code pour les versions de Arcane avant la 3.8 qui ne possèdent pas les
165// classes de base spécifiques pour les services
166namespace Arcane
167{
171}
172#endif
173
174/*---------------------------------------------------------------------------*/
175/*---------------------------------------------------------------------------*/
176
177ARCANE_BEGIN_NAMESPACE
178
179/*---------------------------------------------------------------------------*/
180/*---------------------------------------------------------------------------*/
181
182class CaseOptionsArcaneMeshConverter;
183
184/*---------------------------------------------------------------------------*/
185/*---------------------------------------------------------------------------*/
186
191{
192public:
193 // NOTE GG: attention code dupliqué avec 'ServiceT4CaseAndStrong'. Bien reporter les modifications
194 template <typename ServiceClassType> static void fillServiceInfo(Arcane::ServiceInfo* si)
195 {
196 si->setCaseOptionsFileName("ArcaneMeshConverter_arcane_std");
197 si->setAxlVersion(1.0);
198 si->setDefaultTagName("arcane-mesh-converter");
199 si->setAxlContent(getAxlContent());
200 si->setTagName("convertisseur-maillage","fr");
203);
204 }
205
206public:
207
211 , m_options(nullptr)
212 {
214 if (co) {
215 m_options = new CaseOptionsArcaneMeshConverter(co);
216 }
217
218 }
219
222 {
223 delete m_options;
224 }
225
226
227public:
228
230 CaseOptionsArcaneMeshConverter* options() const { return m_options; }
231
232private:
233
236
237protected:
238
240private:
242 {
243 const Arcane::Byte* content = (const Arcane::Byte*)"";
244 Arcane::Span<const Arcane::Byte> bytes(content,0);
245 int file_version = 1;
246 return Arcane::FileContent(bytes,file_version,"");
247 }
248};
249
250/*---------------------------------------------------------------------------*/
251/*---------------------------------------------------------------------------*/
252
253#define ARCANE_REGISTER_SERVICE_ARCANEMESHCONVERTER(service_name,class_name) \
254 ARCANE_REGISTER_AXL_SERVICE(class_name,Arcane::ServiceProperty(#service_name,Arcane::ST_CaseOption,\
255 Arcane::SFP_None ))
256
257/*---------------------------------------------------------------------------*/
258/*---------------------------------------------------------------------------*/
259
260ARCANE_END_NAMESPACE
261
262/*---------------------------------------------------------------------------*/
263/*---------------------------------------------------------------------------*/
264
265#endif
266
#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.
CaseOptionsArcaneMeshConverter * m_options
Options du jeu de données du service.
ArcaneArcaneMeshConverterObject(const Arcane::ServiceBuildInfo &sbi)
Constructeur.
static Arcane::FileContent getAxlContent()
Variables du service.
CaseOptionsArcaneMeshConverter * options() const
Options du jeu de données du service.
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 d'exécution direct.
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
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