Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ArcanePostProcessing_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_ARCANEPOSTPROCESSING_H
9#define ARCANE_CASEOPTION_AXLSTAR_ARCANEPOSTPROCESSING_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/ItemGroup.h"
21#include "arcane/CaseOptionService.h"
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
26ARCANE_BEGIN_NAMESPACE
27extern "C++" bool
28_caseOptionConvert(const Arcane::CaseOptionBase&,
29 const Arcane::String&,
31ARCANE_END_NAMESPACE
32
33/*---------------------------------------------------------------------------*/
34/*---------------------------------------------------------------------------*/
35
38{
39public:
40
41 /*-------------------------------------------------------------------------*/
42 /*--------------------------- Complex Options -----------------------------*/
43 /*-------------------------------------------------------------------------*/
44 // Generation for option 'output'
45 // Generating simple arity CaseOption for option 'output'
47 : public Arcane::CaseOptions
48 {
49 public:
50
52 const Arcane::String& s, const Arcane::XmlNode& element, bool is_optional=false)
53 : Arcane::CaseOptions(icl,s,element,is_optional)
54 , variable(Arcane::CaseOptionBuildInfo(_configList(),
55 /* name */ "variable", _element(),
56 /* default */ Arcane::String(),
57 /* min-occurs */ 0,
58 /* max-occurs */ -1,
59 /* optional */ false))
60 , group(Arcane::CaseOptionBuildInfo(_configList(),
61 /* name */ "group", _element(),
62 /* default */ Arcane::String(),
63 /* min-occurs */ 0,
64 /* max-occurs */ -1,
65 /* optional */ false),
66 /* type */ "Arcane::ItemGroup")
67 {
68
69variable.addAlternativeNodeName(
70 /* language */ Arcane::String("fr"),
71 /* alternative name */ Arcane::String("variable"));
73 /* language */ Arcane::String("fr"),
74 /* alternative name */ Arcane::String("groupe"));
76 /* language */ Arcane::String("fr"),
77 /* alternative name */ Arcane::String("depouillement"));
78 }
79
80 const CaseOptionOutput& operator()() const { return *this; }
81
82 public:
83 // Interfaces for simple arity CaseOptions
84
85 Arcane::ConstArrayView< Arcane::String > getVariable() { return variable.values(); }
86
87 Arcane::ConstArrayView< Arcane::ItemGroup > getGroup() { return group; }
88
89
90 // Interfaces for complex options
91
92
93 private:
94 // Méthodes pour unifier la construction des options.
95 Arcane::ICaseOptionList* _configList() { return configList(); }
96 Arcane::XmlNode _element() { return Arcane::XmlNode(); }
97
98 public:
99
102
103 };
104
105 /*-------------------------------------------------------------------------*/
106 /*--------------------------- Non Complex Options -------------------------*/
107 /*-------------------------------------------------------------------------*/
108
110 : m_case_options(new Arcane::CaseOptions(cm,"arcane-post-processing"))
111 , outputFrequency(Arcane::CaseOptionBuildInfo(_configList(),
112 /* name */ "output-frequency", _element(),
113 /* default */ "0.0",
114 /* min-occurs */ 1,
115 /* max-occurs */ 1,
116 /* optional */ false))
117 , outputPeriod(Arcane::CaseOptionBuildInfo(_configList(),
118 /* name */ "output-period", _element(),
119 /* default */ "0",
120 /* min-occurs */ 1,
121 /* max-occurs */ 1,
122 /* optional */ false))
123 , outputHistoryPeriod(Arcane::CaseOptionBuildInfo(_configList(),
124 /* name */ "output-history-period", _element(),
125 /* default */ "1",
126 /* min-occurs */ 1,
127 /* max-occurs */ 1,
128 /* optional */ false))
129 , outputHistoryShrink(Arcane::CaseOptionBuildInfo(_configList(),
130 /* name */ "output-history-shrink", _element(),
131 /* default */ "false",
132 /* min-occurs */ 1,
133 /* max-occurs */ 1,
134 /* optional */ false))
135 , saveInit(Arcane::CaseOptionBuildInfo(_configList(),
136 /* name */ "save-init", _element(),
137 /* default */ "false",
138 /* min-occurs */ 1,
139 /* max-occurs */ 1,
140 /* optional */ false))
141 , saveFinalTime(Arcane::CaseOptionBuildInfo(_configList(),
142 /* name */ "save-final-time", _element(),
143 /* default */ "true",
144 /* min-occurs */ 1,
145 /* max-occurs */ 1,
146 /* optional */ false))
147 , endExecutionOutput(Arcane::CaseOptionBuildInfo(_configList(),
148 /* name */ "end-execution-output", _element(),
149 /* default */ "false",
150 /* min-occurs */ 1,
151 /* max-occurs */ 1,
152 /* optional */ false))
153 , format(Arcane::CaseOptionBuildInfo(_configList(),
154 /* name */ "format", _element(),
155 /* default */ "Ensight7PostProcessor",
156 /* min-occurs */ 1,
157 /* max-occurs */ 1,
158 /* optional */ false),
159 /* allow-null */ false,
160 /* optional */ false)
161 , output(_configList(),
162 /* name */ "output", _element())
163 {
164
165format.addAlternativeNodeName(
166 /* language */ Arcane::String("fr"),
167 /* alternative name */ Arcane::String("format-service"));
168outputFrequency.addAlternativeNodeName(
169 /* language */ Arcane::String("fr"),
170 /* alternative name */ Arcane::String("frequence-sortie"));
171outputPeriod.addAlternativeNodeName(
172 /* language */ Arcane::String("fr"),
173 /* alternative name */ Arcane::String("periode-sortie"));
174outputHistoryPeriod.addAlternativeNodeName(
175 /* language */ Arcane::String("fr"),
176 /* alternative name */ Arcane::String("periode-sortie-historique"));
177outputHistoryShrink.addAlternativeNodeName(
178 /* language */ Arcane::String("fr"),
179 /* alternative name */ Arcane::String("compression-sortie-historique"));
181 /* language */ Arcane::String("fr"),
182 /* alternative name */ Arcane::String("sauvegarde-initiale"));
183saveFinalTime.addAlternativeNodeName(
184 /* language */ Arcane::String("fr"),
185 /* alternative name */ Arcane::String("sauvegarde-temps-final"));
186endExecutionOutput.addAlternativeNodeName(
187 /* language */ Arcane::String("fr"),
188 /* alternative name */ Arcane::String("sortie-fin-execution"));
190 /* language */ Arcane::String("fr"),
191 /* alternative name */ Arcane::String("depouillement"));
192addAlternativeNodeName(
193 /* language */ Arcane::String("fr"),
194 /* alternative name */ Arcane::String("arcane-post-traitement"));
195 }
196
197public:
198 // Interfaces for main CaseOptions
199
200 Arcane::Real getOutputFrequency() { return outputFrequency(); }
201 Arcane::ICaseFunction* getOutputFrequencyFunction() { return outputFrequency.function(); }
202 Arcane::IStandardFunction* getOutputFrequencyStandardFunction() { return outputFrequency.standardFunction(); }
203 Arcane::Integer getOutputPeriod() { return outputPeriod(); }
204 Arcane::ICaseFunction* getOutputPeriodFunction() { return outputPeriod.function(); }
205 Arcane::IStandardFunction* getOutputPeriodStandardFunction() { return outputPeriod.standardFunction(); }
206 Arcane::Integer getOutputHistoryPeriod() { return outputHistoryPeriod(); }
207 Arcane::ICaseFunction* getOutputHistoryPeriodFunction() { return outputHistoryPeriod.function(); }
208 Arcane::IStandardFunction* getOutputHistoryPeriodStandardFunction() { return outputHistoryPeriod.standardFunction(); }
209 bool getOutputHistoryShrink() { return outputHistoryShrink(); }
210 Arcane::ICaseFunction* getOutputHistoryShrinkFunction() { return outputHistoryShrink.function(); }
211 Arcane::IStandardFunction* getOutputHistoryShrinkStandardFunction() { return outputHistoryShrink.standardFunction(); }
212 bool getSaveInit() { return saveInit(); }
213 Arcane::ICaseFunction* getSaveInitFunction() { return saveInit.function(); }
214 Arcane::IStandardFunction* getSaveInitStandardFunction() { return saveInit.standardFunction(); }
215 bool getSaveFinalTime() { return saveFinalTime(); }
216 Arcane::ICaseFunction* getSaveFinalTimeFunction() { return saveFinalTime.function(); }
217 Arcane::IStandardFunction* getSaveFinalTimeStandardFunction() { return saveFinalTime.standardFunction(); }
218 bool getEndExecutionOutput() { return endExecutionOutput(); }
219 Arcane::ICaseFunction* getEndExecutionOutputFunction() { return endExecutionOutput.function(); }
220 Arcane::IStandardFunction* getEndExecutionOutputStandardFunction() { return endExecutionOutput.standardFunction(); }
221
222
223
224 Arcane::IPostProcessorWriter* getFormat() { return format(); }
225 // Interfaces for complex options
226
227
228public:
229
230 Arcane::ICaseOptions* caseOptions() const
231 {
232 return m_case_options.get();
233 }
234
235 Arcane::ICaseOptionList* configList() const
236 {
237 return m_case_options->configList();
238 }
239
240 void setCaseModule(Arcane::IModule* m)
241 {
242 m_case_options->setCaseModule(m);
243 }
244
245 void setCaseServiceInfo(Arcane::IServiceInfo* si)
246 {
247 m_case_options->setCaseServiceInfo(si);
248 }
249
250 void addAlternativeNodeName(const Arcane::String& lang,
251 const Arcane::String& name)
252 {
253 m_case_options->addAlternativeNodeName(lang,name);
254 }
255
256private:
257
258 Arcane::ICaseOptionList* _configList() const { return configList(); }
259 Arcane::XmlNode _element() const { return Arcane::XmlNode(); }
260
261private:
262
263 static Arcane::ICaseOptions* _createCaseOption(Arcane::ICaseMng* cm,Arcane::ICaseOptions* co);
264
266
267public:
268
269
270 Arcane::CaseOptionReal outputFrequency;
271 Arcane::CaseOptionInteger outputPeriod;
272 Arcane::CaseOptionInteger outputHistoryPeriod;
273 Arcane::CaseOptionBool outputHistoryShrink;
274 Arcane::CaseOptionBool saveInit;
275 Arcane::CaseOptionBool saveFinalTime;
276 Arcane::CaseOptionBool endExecutionOutput;
278 CaseOptionOutput output;
279};
280
281/*---------------------------------------------------------------------------*/
282/*---------------------------------------------------------------------------*/
283
284#endif
285
286
287
288/*---------------------------------------------------------------------------*/
289/*---------------------------------------------------------------------------*/
290// #WARNING#: This file has been generated automatically. Do not edit.
291// Arcane version 1.0 : 11/18/2024 02:52:34
292/*---------------------------------------------------------------------------*/
293/*---------------------------------------------------------------------------*/
294
295#ifndef ARCANE_MODULE_AXLSTAR_ARCANEPOSTPROCESSING_H
296#define ARCANE_MODULE_AXLSTAR_ARCANEPOSTPROCESSING_H
297
298/*---------------------------------------------------------------------------*/
299/*---------------------------------------------------------------------------*/
300
301#include "arcane/VariableTypes.h"
302#include "arcane/EntryPoint.h"
303#include "arcane/ISubDomain.h"
304#include "arcane/ModuleBuildInfo.h"
305#include "arcane/ModuleFactory.h"
306#include "arcane/ServiceRegisterer.h"
307#include "arcane/BasicModule.h"
308#include "arcane/ServiceInfo.h"
309
310/*---------------------------------------------------------------------------*/
311/*---------------------------------------------------------------------------*/
312
313namespace Arcane
314{
315class ISubDomain;
316class IModule;
317}
318
319/*---------------------------------------------------------------------------*/
320/*---------------------------------------------------------------------------*/
321
323
324/*---------------------------------------------------------------------------*/
325/*---------------------------------------------------------------------------*/
326
329 : public Arcane::BasicModule
330{
331public:
332
333 static void fillServiceInfo(Arcane::ServiceInfo* si)
334 {
335 si->setCaseOptionsFileName("ArcanePostProcessing_arcane_std");
336 si->setAxlVersion(1.0);
337 si->setDefaultTagName(Arcane::String("arcane-post-processing"));
338 si->setAxlContent(getAxlContent());
339 si->setTagName(Arcane::String("arcane-post-traitement"),Arcane::String("fr"));
340 }
341
342public:
343
346 , m_options(nullptr)
347 , m_next_iteration(Arcane::VariableBuildInfo(this, "PostProcessingNextIteration" ))
348 , m_next_global_time(Arcane::VariableBuildInfo(this, "PostProcessingNextGlobalTime" ))
349 , m_curves_next_iteration(Arcane::VariableBuildInfo(this, "PostProcessingCurvesNextIteration" ))
350 , m_curves_next_global_time(Arcane::VariableBuildInfo(this, "PostProcessingCurvesNextGlobalTime" ))
351 , m_history_next_iteration(Arcane::VariableBuildInfo(this, "PostProcessingHistoryNextIteration" ))
352 {
354 m_options->setCaseModule(this);
355 addEntryPoint(this, "PostProcessingExportData",
359 addEntryPoint(this, "PostProcessingExportDataStart",
360 &ArcaneArcanePostProcessingObject::exportDataStart,
363 addEntryPoint(this, "PostProcessingStartInit",
364 &ArcaneArcanePostProcessingObject::postProcessingStartInit,
367 addEntryPoint(this, "PostProcessingInit",
368 &ArcaneArcanePostProcessingObject::postProcessingInit,
371 addEntryPoint(this, "PostProcessingExit",
372 &ArcaneArcanePostProcessingObject::postProcessingExit,
373 Arcane::IEntryPoint::WExit,
375 }
376
378 {
379 delete m_options;
380 }
381
382public:
383
385 virtual void exportData() = 0; // ExportData
386 virtual void exportDataStart() = 0; // ExportDataStart
387 virtual void postProcessingStartInit() = 0; // PostProcessingStartInit
388 virtual void postProcessingInit() = 0; // PostProcessingInit
389 virtual void postProcessingExit() = 0; // PostProcessingExit
390
393
394private:
395
398
399protected:
400
403 Arcane::VariableScalarReal m_next_global_time;
404 Arcane::VariableScalarInteger m_curves_next_iteration;
405 Arcane::VariableScalarReal m_curves_next_global_time;
406 Arcane::VariableScalarInteger m_history_next_iteration;
407
408private:
409 static Arcane::FileContent getAxlContent()
410 {
411 const char* str_content = "";
412 const Arcane::Byte* content = (const Arcane::Byte*)(str_content);
413 Arcane::Span<const Arcane::Byte> bytes(content,0);
414 int file_version = 1;
415 return Arcane::FileContent(bytes,file_version,"");
416 }
417
418};
419
420/*---------------------------------------------------------------------------*/
421/*---------------------------------------------------------------------------*/
422
423#define ARCANE_REGISTER_MODULE_ARCANEPOSTPROCESSING(class_name) \
424 ARCANE_REGISTER_AXL_MODULE(class_name,Arcane::ModuleProperty("ArcanePostProcessing",false))
425
426/*---------------------------------------------------------------------------*/
427/*---------------------------------------------------------------------------*/
428
429#endif
430
Generation de la classe de base du Module.
CaseOptionsArcanePostProcessing * options() const
Options du jeu de données du module.
Arcane::VariableScalarInteger m_next_iteration
Variables du module.
virtual void exportData()=0
points d'entrée
CaseOptionsArcanePostProcessing * m_options
Options du jeu de données du module.
Module basique.
Definition BasicModule.h:45
Classe de base d'une option du jeu de donnée.
void addAlternativeNodeName(const String &lang, const String &name)
Ajoute une traduction pour le nom de l'option.
Informations pour construire une option de jeu de données.
Option du jeu de donnée de type liste de types étendus.
Option du jeu de données de type liste de types simples (réel, entier, booléen, .....
ICaseFunction * function() const override
Fonction associée à cette option (0 si aucune).
virtual IStandardFunction * standardFunction() const
Fonction standard associée à cette option (0 si aucune).
Classe de base d'une liste d'options du jeu de données.
Definition CaseOptions.h:57
void addAlternativeNodeName(const String &lang, const String &name) override
Ajoute une traduction pour le nom de l'option. Ajoute le nom name de l'option correspondant au langag...
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.
static const char *const WComputeLoop
appelé pendant la boucle de calcul
Definition IEntryPoint.h:42
@ PAutoLoadEnd
Chargé automatiquement à la fin. Cela signifie qu'un module possédant un point d'entrée avec cette pr...
Definition IEntryPoint.h:80
@ 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
static const char *const WStartInit
appelé pendant l'initialisation d'un nouveau cas
Definition IEntryPoint.h:50
static const char *const WInit
appelé pendant l'initialisation
Definition IEntryPoint.h:46
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.
virtual ICaseMng * caseMng()=0
Retourne le gestionnaire du jeu de données.
Informations d'un service.
Definition ServiceInfo.h:46
Groupe d'entités de maillage.
Definition ItemGroup.h:49
Informations pour construire un module.
ISubDomain * subDomain() const
Accès au sous-domaine associé
Paramètres nécessaires à la construction d'une variable.
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