8#ifndef ARCANE_CASEOPTION_AXLSTAR_ARCANE_HDF5VARIABLEWRITER_H
9#define ARCANE_CASEOPTION_AXLSTAR_ARCANE_HDF5VARIABLEWRITER_H
14#include "arcane/utils/String.h"
16#include "arcane/CaseOptions.h"
17#include "arcane/CaseOptionsMulti.h"
18#include "arcane/CaseOptionBuildInfo.h"
19#include "arcane/XmlNodeList.h"
30class CaseOptionsHdf5VariableWriter
39 class CaseOptionWriteValue
44 typedef CaseOptionWriteValue ThatClass;
49 "mesh-name", _element(),
55 "file-name", _element(),
63meshName.addAlternativeNodeName(
66fileName.addAlternativeNodeName(
88 const ThatClass* operator->()
const {
return this; }
92 Arcane::CaseOptionString meshName;
93 Arcane::CaseOptionString fileName;
119 BaseClass operator()() {
return (*
this); }
127 v =
new value_type*[s];
131 v[i] =
new value_type(
this,configList(),elist[i]);
141 value_type** v =
_ptr();
168 , write(_configList(),
172write.addAlternativeNodeName(
175addAlternativeNodeName(
193 return m_case_options.get();
198 return m_case_options->configList();
201 void setCaseModule(Arcane::IModule* m)
203 m_case_options->setCaseModule(m);
206 void setCaseServiceInfo(Arcane::IServiceInfo* si)
208 m_case_options->setCaseServiceInfo(si);
211 void addAlternativeNodeName(
const Arcane::String& lang,
212 const Arcane::String& name)
214 m_case_options->addAlternativeNodeName(lang,name);
219 Arcane::ICaseOptionList* _configList()
const {
return configList(); }
220 Arcane::XmlNode _element()
const {
return Arcane::XmlNode(); }
224 static Arcane::ICaseOptions* _createCaseOption(Arcane::ICaseMng* cm,Arcane::ICaseOptions* co);
226 Arcane::ReferenceCounter<Arcane::ICaseOptions> m_case_options;
231 CaseOptionWrite write;
253#ifndef ARCANE_MODULE_AXLSTAR_ARCANE_HDF5VARIABLEWRITER_H
254#define ARCANE_MODULE_AXLSTAR_ARCANE_HDF5VARIABLEWRITER_H
259#include "arcane/VariableTypes.h"
260#include "arcane/ServiceInfo.h"
261#include "arcane/ISubDomain.h"
262#include "arcane/ServiceBuildInfo.h"
263#include "arcane/ServiceFactory.h"
264#include "arcane/ServiceRegisterer.h"
265#include "arcane/BasicService.h"
267#ifndef ARCANE_HAS_SPECIFIC_BASIC_SERVICE
281ARCANE_BEGIN_NAMESPACE
286class CaseOptionsHdf5VariableWriter;
293 :
public BasicTimeLoopService
299 si->setCaseOptionsFileName(
"Hdf5VariableWriter_arcane_hdf5");
300 si->setAxlVersion(1.0);
301 si->setDefaultTagName(
"hdf5-variable-writer");
303 si->setTagName(
"ecrivain-variable-hdf5",
"fr");
313 : BasicTimeLoopService(sbi)
348 int file_version = 1;
356#define ARCANE_REGISTER_SERVICE_HDF5VARIABLEWRITER(service_name,class_name) \
357 ARCANE_REGISTER_AXL_SERVICE(class_name,Arcane::ServiceProperty(#service_name,Arcane::ST_CaseOption,\
#define ARCANE_SERVICE_INTERFACE(ainterface)
Macro to declare an interface when registering a service.
static Arcane::FileContent getAxlContent()
Variables du service.
CaseOptionsHdf5VariableWriter * options() const
Options du jeu de données du service.
virtual ~ArcaneHdf5VariableWriterObject()
Destructeur.
CaseOptionsHdf5VariableWriter * m_options
Options du jeu de données du service.
ArcaneHdf5VariableWriterObject(const Arcane::ServiceBuildInfo &sbi)
Constructeur.
Modifiable view of an array of type T.
constexpr pointer _ptr() noexcept
void _setArray(pointer v, Integer s) noexcept
constexpr reference operator[](Integer i)
constexpr Integer size() const noexcept
Base class of a service linked to a subdomain.
Information for building a dataset option.
Base class for a complex option value.
Base class for an array of complex data set options.
void addAlternativeNodeName(const String &lang, const String &name) override
Adds a translation for the option name. Adds the option name name corresponding to language lang....
Description and content of a file.
Interface of a dataset function.
Interface for a data set options list.
Interface for a list of options that appears multiple times.
Interface for a list of data set options.
Interface managing a standard function.
Interface of a service operating during the time loop.
Information about a service.
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.
Unicode character string.
List of nodes of a DOM tree.
-- 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.