Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
Ensight7PostProcessor_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:33
5/*---------------------------------------------------------------------------*/
6/*---------------------------------------------------------------------------*/
7
8#ifndef ARCANE_CASEOPTION_AXLSTAR_ENSIGHT7POSTPROCESSOR_H
9#define ARCANE_CASEOPTION_AXLSTAR_ENSIGHT7POSTPROCESSOR_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 , filesetSize(Arcane::CaseOptionBuildInfo(_configList(),
45 /* name */ "fileset-size", _element(),
46 /* default */ "0",
47 /* min-occurs */ 1,
48 /* max-occurs */ 1,
49 /* optional */ false))
50 , useDegeneratedHexa(Arcane::CaseOptionBuildInfo(_configList(),
51 /* name */ "use-degenerated-hexa", _element(),
52 /* default */ "true",
53 /* min-occurs */ 1,
54 /* max-occurs */ 1,
55 /* optional */ false))
56 , binaryFile(Arcane::CaseOptionBuildInfo(_configList(),
57 /* name */ "binary-file", _element(),
58 /* default */ "true",
59 /* min-occurs */ 1,
60 /* max-occurs */ 1,
61 /* optional */ false))
62 , forceFirstGeometry(Arcane::CaseOptionBuildInfo(_configList(),
63 /* name */ "force-first-geometry", _element(),
64 /* default */ "false",
65 /* min-occurs */ 1,
66 /* max-occurs */ 1,
67 /* optional */ false))
68 , saveUids(Arcane::CaseOptionBuildInfo(_configList(),
69 /* name */ "save-uids", _element(),
70 /* default */ "false",
71 /* min-occurs */ 1,
72 /* max-occurs */ 1,
73 /* optional */ false))
74 {
75
76filesetSize.addAlternativeNodeName(
77 /* language */ Arcane::String("fr"),
78 /* alternative name */ Arcane::String("nb-temps-par-fichier"));
79binaryFile.addAlternativeNodeName(
80 /* language */ Arcane::String("fr"),
81 /* alternative name */ Arcane::String("fichier-binaire"));
82forceFirstGeometry.addAlternativeNodeName(
83 /* language */ Arcane::String("fr"),
84 /* alternative name */ Arcane::String("force-premiere-geometie"));
85saveUids.addAlternativeNodeName(
86 /* language */ Arcane::String("fr"),
87 /* alternative name */ Arcane::String("sauve-uids"));
88addAlternativeNodeName(
89 /* language */ Arcane::String("fr"),
90 /* alternative name */ Arcane::String("post-processeur-ensight7"));
91 }
92
93public:
94 // Interfaces for main CaseOptions
95
96 Arcane::Integer getFilesetSize() { return filesetSize(); }
97 Arcane::ICaseFunction* getFilesetSizeFunction() { return filesetSize.function(); }
98 Arcane::IStandardFunction* getFilesetSizeStandardFunction() { return filesetSize.standardFunction(); }
99 bool getUseDegeneratedHexa() { return useDegeneratedHexa(); }
100 Arcane::ICaseFunction* getUseDegeneratedHexaFunction() { return useDegeneratedHexa.function(); }
101 Arcane::IStandardFunction* getUseDegeneratedHexaStandardFunction() { return useDegeneratedHexa.standardFunction(); }
102 bool getBinaryFile() { return binaryFile(); }
103 Arcane::ICaseFunction* getBinaryFileFunction() { return binaryFile.function(); }
104 Arcane::IStandardFunction* getBinaryFileStandardFunction() { return binaryFile.standardFunction(); }
105 bool getForceFirstGeometry() { return forceFirstGeometry(); }
106 Arcane::ICaseFunction* getForceFirstGeometryFunction() { return forceFirstGeometry.function(); }
107 Arcane::IStandardFunction* getForceFirstGeometryStandardFunction() { return forceFirstGeometry.standardFunction(); }
108 bool getSaveUids() { return saveUids(); }
109 Arcane::ICaseFunction* getSaveUidsFunction() { return saveUids.function(); }
110 Arcane::IStandardFunction* getSaveUidsStandardFunction() { return saveUids.standardFunction(); }
111
112
113
114 // Interfaces for complex options
115
116
117public:
118
119 Arcane::ICaseOptions* caseOptions() const
120 {
121 return m_case_options.get();
122 }
123
124 Arcane::ICaseOptionList* configList() const
125 {
126 return m_case_options->configList();
127 }
128
129 void setCaseModule(Arcane::IModule* m)
130 {
131 m_case_options->setCaseModule(m);
132 }
133
134 void setCaseServiceInfo(Arcane::IServiceInfo* si)
135 {
136 m_case_options->setCaseServiceInfo(si);
137 }
138
139 void addAlternativeNodeName(const Arcane::String& lang,
140 const Arcane::String& name)
141 {
142 m_case_options->addAlternativeNodeName(lang,name);
143 }
144
145private:
146
147 Arcane::ICaseOptionList* _configList() const { return configList(); }
148 Arcane::XmlNode _element() const { return Arcane::XmlNode(); }
149
150private:
151
152 static Arcane::ICaseOptions* _createCaseOption(Arcane::ICaseMng* cm,Arcane::ICaseOptions* co);
153
155
156public:
157
158
159 Arcane::CaseOptionInteger filesetSize;
160 Arcane::CaseOptionBool useDegeneratedHexa;
161 Arcane::CaseOptionBool binaryFile;
162 Arcane::CaseOptionBool forceFirstGeometry;
163 Arcane::CaseOptionBool saveUids;
164};
165
166/*---------------------------------------------------------------------------*/
167/*---------------------------------------------------------------------------*/
168
169ARCANE_END_NAMESPACE
170
171/*---------------------------------------------------------------------------*/
172/*---------------------------------------------------------------------------*/
173
174#endif
175
176
177
178/*---------------------------------------------------------------------------*/
179/*---------------------------------------------------------------------------*/
180// #WARNING#: This file has been generated automatically. Do not edit.
181// Arcane version 1.0 : 11/18/2024 02:52:33
182/*---------------------------------------------------------------------------*/
183/*---------------------------------------------------------------------------*/
184
185#ifndef ARCANE_MODULE_AXLSTAR_ENSIGHT7POSTPROCESSOR_H
186#define ARCANE_MODULE_AXLSTAR_ENSIGHT7POSTPROCESSOR_H
187
188/*---------------------------------------------------------------------------*/
189/*---------------------------------------------------------------------------*/
190
191#include "arcane/VariableTypes.h"
192#include "arcane/ServiceInfo.h"
193#include "arcane/ISubDomain.h"
194#include "arcane/ServiceBuildInfo.h"
195#include "arcane/ServiceFactory.h"
196#include "arcane/ServiceRegisterer.h"
197#include "arcane/BasicService.h"
198
199#ifndef ARCANE_HAS_SPECIFIC_BASIC_SERVICE
200// Code pour les versions de Arcane avant la 3.8 qui ne possèdent pas les
201// classes de base spécifiques pour les services
202namespace Arcane
203{
207}
208#endif
209
210/*---------------------------------------------------------------------------*/
211/*---------------------------------------------------------------------------*/
212
213namespace Arcane
214{
215
216/*---------------------------------------------------------------------------*/
217/*---------------------------------------------------------------------------*/
218
219class CaseOptionsEnsight7PostProcessor;
220
221/*---------------------------------------------------------------------------*/
222/*---------------------------------------------------------------------------*/
223
227{
228public:
229 // NOTE GG: attention code dupliqué avec 'ServiceT4CaseAndStrong'. Bien reporter les modifications
230 template <typename ServiceClassType> static void fillServiceInfo(Arcane::ServiceInfo* si)
231 {
232 si->setCaseOptionsFileName("Ensight7PostProcessor_arcane_std");
233 si->setAxlVersion(0.0);
234 si->setDefaultTagName("ensight7-post-processor");
235 si->setAxlContent(getAxlContent());
236 si->setTagName("post-processeur-ensight7","fr");
239);
240 }
241
242public:
243
247 , m_options(nullptr)
248 {
250 if (co) {
252 }
253
254 }
255
258 {
259 delete m_options;
260 }
261
262
263public:
264
267
268private:
269
272
273protected:
274
276private:
278 {
279 const Arcane::Byte* content = (const Arcane::Byte*)"";
280 Arcane::Span<const Arcane::Byte> bytes(content,0);
281 int file_version = 1;
282 return Arcane::FileContent(bytes,file_version,"");
283 }
284};
285
286/*---------------------------------------------------------------------------*/
287/*---------------------------------------------------------------------------*/
288
289#define ARCANE_REGISTER_SERVICE_ENSIGHT7POSTPROCESSOR(service_name,class_name) \
290 ARCANE_REGISTER_AXL_SERVICE(class_name,Arcane::ServiceProperty(#service_name,Arcane::ST_CaseOption,\
291 Arcane::SFP_None ))
292
293/*---------------------------------------------------------------------------*/
294/*---------------------------------------------------------------------------*/
295
296} // End namespace Arcane
297
298/*---------------------------------------------------------------------------*/
299/*---------------------------------------------------------------------------*/
300
301#endif
302
#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.
CaseOptionsEnsight7PostProcessor * m_options
Options du jeu de données du service.
static Arcane::FileContent getAxlContent()
Variables du service.
CaseOptionsEnsight7PostProcessor * options() const
Options du jeu de données du service.
ArcaneEnsight7PostProcessorObject(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 module.
Definition IModule.h:39
Interface d'un écrivain pour les informations de post-traitement.
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 de base d'un écrivain pour les informations de post-traitement.
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