12#ifndef ARCANE_HDF5_HDF5MPIREADERWRITER_H
13#define ARCANE_HDF5_HDF5MPIREADERWRITER_H
17#include "arcane/core/IDataReader.h"
18#include "arcane/core/IDataWriter.h"
20#include "arcane/hdf5/Hdf5Utils.h"
21#include "arcane/core/VariableTypes.h"
40class Hdf5MpiReaderWriter
57 Integer fileset_size, eOpenMode om,
bool do_verif =
false);
58 ~Hdf5MpiReaderWriter();
62 virtual void initialize();
65 virtual void endWrite();
67 virtual void endRead() {}
77 herr_t iterateMe(hid_t group_id,
const char* member_name);
87 , m_total_size(total_size)
88 , m_all_sizes(all_sizes)
116 typedef std::map<String, VarOffset> OffsetMap;
117 OffsetMap m_variables_offset;
125 Int32 m_last_recv_rank;
131 void _writeVal(
const String& var_group_name,
const String& sub_group_name,
143 void _receiveRemoteVariables();
145 void _setMetaData(
const String& meta_data,
const String& sub_group_name);
bool m_is_parallel
Active parallel mode: WARNING: for testing only.
IParallelMng * m_parallel_mng
Parallelism manager;.
Hdf5Utils::HFile m_file_id
HDF file identifier.
String m_filename
Filename.
virtual void write(IVariable *v, IData *data)
Writes the data data of the variable var.
Hdf5Utils::HGroup m_sub_group_id
HDF group identifier containing the protection.
virtual String metaData()
Metadata.
virtual void read(IVariable *v, IData *data)
Reads the data data of the variable var.
Hdf5Utils::HGroup m_variable_group_id
HDF group identifier containing the variables.
String m_sub_group_name
Sub-group name.
bool m_is_initialized
True if already initialized.
virtual void setMetaData(const String &meta_data)
Sets the metadata information.
ISubDomain * m_sub_domain
Sub-domain manager.
StringList m_variables_name
List of saved variable names.
eOpenMode m_open_mode
Open mode.
Encapsulates a hid_t for a file.
Encapsulates a hid_t for a group.
Definition of standard Arcane types for hdf5.
Interface for reading variable data.
Interface for writing variable data.
Interface of a data item.
Interface of the parallelism manager for a subdomain.
Interface of a serialized data.
Interface of the subdomain manager.
Reference to an instance.
1D vector of data with reference semantics.
Unicode character string.
TraceAccessor(ITraceMng *m)
Constructs an accessor via the trace manager m.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int64_t Int64
Signed integer type of 64 bits.
Int32 Integer
Type representing an integer.
List< String > StringList
Unicode string list.
std::int32_t Int32
Signed integer type of 32 bits.