Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
VtkHdfV2PostProcessor_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_VTKHDFV2POSTPROCESSOR_H
9#define ARCANE_CASEOPTION_AXLSTAR_VTKHDFV2POSTPROCESSOR_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 , useCollectiveWrite(Arcane::CaseOptionBuildInfo(_configList(),
45 /* name */ "use-collective-write", _element(),
46 /* default */ "true",
47 /* min-occurs */ 1,
48 /* max-occurs */ 1,
49 /* optional */ false))
50 , maxWriteSize(Arcane::CaseOptionBuildInfo(_configList(),
51 /* name */ "max-write-size", _element(),
52 /* default */ "0",
53 /* min-occurs */ 1,
54 /* max-occurs */ 1,
55 /* optional */ false))
56 {
57
58addAlternativeNodeName(
59 /* language */ Arcane::String("fr"),
60 /* alternative name */ Arcane::String("post-processeur-vtk-hdf"));
61 }
62
63public:
64 // Interfaces for main CaseOptions
65
66 bool getUseCollectiveWrite() { return useCollectiveWrite(); }
67 Arcane::ICaseFunction* getUseCollectiveWriteFunction() { return useCollectiveWrite.function(); }
68 Arcane::IStandardFunction* getUseCollectiveWriteStandardFunction() { return useCollectiveWrite.standardFunction(); }
69 Arcane::Int64 getMaxWriteSize() { return maxWriteSize(); }
70 Arcane::ICaseFunction* getMaxWriteSizeFunction() { return maxWriteSize.function(); }
71 Arcane::IStandardFunction* getMaxWriteSizeStandardFunction() { return maxWriteSize.standardFunction(); }
72
73
74
75 // Interfaces for complex options
76
77
78public:
79
80 Arcane::ICaseOptions* caseOptions() const
81 {
82 return m_case_options.get();
83 }
84
85 Arcane::ICaseOptionList* configList() const
86 {
87 return m_case_options->configList();
88 }
89
90 void setCaseModule(Arcane::IModule* m)
91 {
92 m_case_options->setCaseModule(m);
93 }
94
95 void setCaseServiceInfo(Arcane::IServiceInfo* si)
96 {
97 m_case_options->setCaseServiceInfo(si);
98 }
99
100 void addAlternativeNodeName(const Arcane::String& lang,
101 const Arcane::String& name)
102 {
103 m_case_options->addAlternativeNodeName(lang,name);
104 }
105
106private:
107
108 Arcane::ICaseOptionList* _configList() const { return configList(); }
109 Arcane::XmlNode _element() const { return Arcane::XmlNode(); }
110
111private:
112
113 static Arcane::ICaseOptions* _createCaseOption(Arcane::ICaseMng* cm,Arcane::ICaseOptions* co);
114
116
117public:
118
119
120 Arcane::CaseOptionBool useCollectiveWrite;
121 Arcane::CaseOptionInt64 maxWriteSize;
122};
123
124/*---------------------------------------------------------------------------*/
125/*---------------------------------------------------------------------------*/
126
127ARCANE_END_NAMESPACE
128
129/*---------------------------------------------------------------------------*/
130/*---------------------------------------------------------------------------*/
131
132#endif
133
134
135
136/*---------------------------------------------------------------------------*/
137/*---------------------------------------------------------------------------*/
138// #WARNING#: This file has been generated automatically. Do not edit.
139// Arcane version 1.0 : 11/18/2024 02:52:36
140/*---------------------------------------------------------------------------*/
141/*---------------------------------------------------------------------------*/
142
143#ifndef ARCANE_MODULE_AXLSTAR_VTKHDFV2POSTPROCESSOR_H
144#define ARCANE_MODULE_AXLSTAR_VTKHDFV2POSTPROCESSOR_H
145
146/*---------------------------------------------------------------------------*/
147/*---------------------------------------------------------------------------*/
148
149#include "arcane/VariableTypes.h"
150#include "arcane/ServiceInfo.h"
151#include "arcane/ISubDomain.h"
152#include "arcane/ServiceBuildInfo.h"
153#include "arcane/ServiceFactory.h"
154#include "arcane/ServiceRegisterer.h"
155#include "arcane/BasicService.h"
156
157#ifndef ARCANE_HAS_SPECIFIC_BASIC_SERVICE
158// Code pour les versions de Arcane avant la 3.8 qui ne possèdent pas les
159// classes de base spécifiques pour les services
160namespace Arcane
161{
165}
166#endif
167
168/*---------------------------------------------------------------------------*/
169/*---------------------------------------------------------------------------*/
170
171namespace Arcane
172{
173
174/*---------------------------------------------------------------------------*/
175/*---------------------------------------------------------------------------*/
176
177class CaseOptionsVtkHdfV2PostProcessor;
178
179/*---------------------------------------------------------------------------*/
180/*---------------------------------------------------------------------------*/
181
185{
186public:
187 // NOTE GG: attention code dupliqué avec 'ServiceT4CaseAndStrong'. Bien reporter les modifications
188 template <typename ServiceClassType> static void fillServiceInfo(Arcane::ServiceInfo* si)
189 {
190 si->setCaseOptionsFileName("VtkHdfV2PostProcessor_arcane_std");
191 si->setAxlVersion(0.0);
192 si->setDefaultTagName("vtk-hdf-v2-post-processor");
193 si->setAxlContent(getAxlContent());
194 si->setTagName("post-processeur-vtk-hdf","fr");
197);
198 }
199
200public:
201
205 , m_options(nullptr)
206 {
208 if (co) {
210 }
211
212 }
213
216 {
217 delete m_options;
218 }
219
220
221public:
222
225
226private:
227
230
231protected:
232
234private:
236 {
237 const Arcane::Byte* content = (const Arcane::Byte*)"";
238 Arcane::Span<const Arcane::Byte> bytes(content,0);
239 int file_version = 1;
240 return Arcane::FileContent(bytes,file_version,"");
241 }
242};
243
244/*---------------------------------------------------------------------------*/
245/*---------------------------------------------------------------------------*/
246
247#define ARCANE_REGISTER_SERVICE_VTKHDFV2POSTPROCESSOR(service_name,class_name) \
248 ARCANE_REGISTER_AXL_SERVICE(class_name,Arcane::ServiceProperty(#service_name,Arcane::ST_SubDomain|Arcane::ST_CaseOption,\
249 Arcane::SFP_None ))
250
251/*---------------------------------------------------------------------------*/
252/*---------------------------------------------------------------------------*/
253
254} // End namespace Arcane
255
256/*---------------------------------------------------------------------------*/
257/*---------------------------------------------------------------------------*/
258
259#endif
260
#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.
static Arcane::FileContent getAxlContent()
Variables du service.
CaseOptionsVtkHdfV2PostProcessor * options() const
Options du jeu de données du service.
ArcaneVtkHdfV2PostProcessorObject(const Arcane::ServiceBuildInfo &sbi)
Constructeur.
CaseOptionsVtkHdfV2PostProcessor * m_options
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 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