Arcane  4.2.1.0
Developer documentation
Loading...
Searching...
No Matches
Ensight7PostProcessor_axl.h
1/*---------------------------------------------------------------------------*/
2/*---------------------------------------------------------------------------*/
3// #WARNING#: This file has been generated automatically. Do not edit.
4// Axlstar version 1.0
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
30class CaseOptionsEnsight7PostProcessor
31{
32public:
33
34 /*-------------------------------------------------------------------------*/
35 /*--------------------------- Complex Options -----------------------------*/
36 /*-------------------------------------------------------------------------*/
37
38 /*-------------------------------------------------------------------------*/
39 /*--------------------------- Non Complex Options -------------------------*/
40 /*-------------------------------------------------------------------------*/
41
42 CaseOptionsEnsight7PostProcessor(Arcane::ICaseOptions* co)
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// Axlstar version 1.0
182/*---------------------------------------------------------------------------*/
183/*---------------------------------------------------------------------------*/
184#ifndef ARCANE_SERVICE_AXLSTAR_ENSIGHT7POSTPROCESSOR_H
185#define ARCANE_SERVICE_AXLSTAR_ENSIGHT7POSTPROCESSOR_H
186/*---------------------------------------------------------------------------*/
187/*---------------------------------------------------------------------------*/
188
189#include "arcane/core/VariableTypes.h"
190#include "arcane/core/ServiceInfo.h"
191#include "arcane/core/ISubDomain.h"
192#include "arcane/core/ServiceBuildInfo.h"
194#include "arcane/core/ServiceRegisterer.h"
195#include "arcane/core/BasicService.h"
196
197#ifndef ARCANE_HAS_SPECIFIC_BASIC_SERVICE
198// Code pour les versions de Arcane avant la 3.8 qui ne possèdent pas les
199// classes de base spécifiques pour les services
200namespace Arcane
201{
202using BasicCaseOptionService = BasicService;
203using BasicSubDomainService = BasicService;
204using BasicMeshService = BasicService;
205}
206#endif
207
208/*---------------------------------------------------------------------------*/
209/*---------------------------------------------------------------------------*/
210
211namespace Arcane
212{
213
214/*---------------------------------------------------------------------------*/
215/*---------------------------------------------------------------------------*/
216
217class CaseOptionsEnsight7PostProcessor;
218
219/*---------------------------------------------------------------------------*/
220/*---------------------------------------------------------------------------*/
221
224 : public PostProcessorWriterBase
225{
226public:
227 // NOTE GG: attention code dupliqué avec 'ServiceT4CaseAndStrong'. Bien reporter les modifications
228 template <typename ServiceClassType> static void fillServiceInfo(Arcane::ServiceInfo* si)
229 {
230 si->setCaseOptionsFileName("Ensight7PostProcessor_arcane_std");
231 si->setAxlVersion(0.0);
232 si->setDefaultTagName("ensight7-post-processor");
233 si->setAxlContent(getAxlContent());
234 si->setTagName("post-processeur-ensight7","fr");
237);
238 }
239
240public:
241
244 : PostProcessorWriterBase(sbi)
245 , m_options(nullptr)
246 {
248 if (co) {
250 }
251
252 }
253
256 {
257 delete m_options;
258 }
259
260
261public:
262
265
266private:
267
270
271protected:
272
274private:
276 {
277 const Arcane::Byte* content = (const Arcane::Byte*)"";
278 Arcane::Span<const Arcane::Byte> bytes(content,0);
279 int file_version = 1;
280 return Arcane::FileContent(bytes,file_version,"");
281 }
282};
283
284/*---------------------------------------------------------------------------*/
285/*---------------------------------------------------------------------------*/
286
287#define ARCANE_REGISTER_SERVICE_ENSIGHT7POSTPROCESSOR(service_name,class_name) \
288 ARCANE_REGISTER_AXL_SERVICE(class_name,Arcane::ServiceProperty(#service_name,Arcane::ST_CaseOption,\
289 Arcane::SFP_None ))
290
291/*---------------------------------------------------------------------------*/
292/*---------------------------------------------------------------------------*/
293
294} // End namespace Arcane
295
296/*---------------------------------------------------------------------------*/
297/*---------------------------------------------------------------------------*/
298
299#endif
300
This file contains the various service factories and macros for registering services.
#define ARCANE_SERVICE_INTERFACE(ainterface)
Macro to declare an interface when registering a 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.
Base class of a service linked to a subdomain.
Information for building a dataset option.
Description and content of a file.
Definition FileContent.h:33
Interface of a dataset function.
Case manager interface.
Definition ICaseMng.h:57
Interface for a data set options list.
Interface for a list of data set options.
Interface of a module.
Definition IModule.h:40
Interface for a writer for post-processing information.
Interface for service or module information.
Interface managing a standard function.
Information about a service.
Definition ServiceInfo.h:51
Encapsulation of a pointer with a reference counter.
static void registerToServiceInfo(ServiceInfo *si, const Interfaces &... args)
Registers the factories for the Interfaces interfaces in the service.
ICaseOptions * caseOptions() const
Access to the associated ICaseOptions.
Structure containing the information to create a service.
View of an array of elements of type T.
Definition Span.h:633
Node of a DOM tree.
Definition XmlNode.h:51
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.
unsigned char Byte
Type of a byte.
Definition BaseTypes.h:42