OGS
HdfData.h
Go to the documentation of this file.
1
13
#pragma once
14
15
#include <hdf5.h>
16
17
#include <string>
18
#include <vector>
19
20
#include "
MeshPropertyDataType.h
"
21
22
namespace
MeshLib::IO
23
{
24
using
Hdf5DimType
= hsize_t;
25
26
struct
HdfData
final
27
{
28
HdfData
(
void
const
*
data_start
, std::size_t size_partitioned_dim,
29
std::size_t size_tuple, std::string
const
&
name
,
30
MeshPropertyDataType
mesh_property_data_type,
unsigned
int
n_files,
31
unsigned
int
chunk_size_bytes);
32
void
const
*
data_start
;
33
std::vector<Hdf5DimType>
data_space
;
34
std::vector<Hdf5DimType>
offsets
;
35
std::vector<Hdf5DimType>
file_space
;
36
std::vector<Hdf5DimType>
chunk_space
;
37
std::string
name
;
38
int64_t
data_type
;
39
};
40
41
}
// namespace MeshLib::IO
MeshPropertyDataType.h
Enum for all propertyVector data types and XDMF ParentDataTypes.
MeshPropertyDataType
MeshPropertyDataType
Definition
MeshPropertyDataType.h:19
MeshLib::IO
Definition
MeshIO.cpp:273
MeshLib::IO::Hdf5DimType
hsize_t Hdf5DimType
Definition
HdfData.h:24
MeshLib::IO::HdfData
Definition
HdfData.h:27
MeshLib::IO::HdfData::file_space
std::vector< Hdf5DimType > file_space
Definition
HdfData.h:35
MeshLib::IO::HdfData::offsets
std::vector< Hdf5DimType > offsets
Definition
HdfData.h:34
MeshLib::IO::HdfData::chunk_space
std::vector< Hdf5DimType > chunk_space
Definition
HdfData.h:36
MeshLib::IO::HdfData::name
std::string name
Definition
HdfData.h:37
MeshLib::IO::HdfData::data_type
int64_t data_type
Definition
HdfData.h:38
MeshLib::IO::HdfData::HdfData
HdfData(void const *data_start, std::size_t size_partitioned_dim, std::size_t size_tuple, std::string const &name, MeshPropertyDataType mesh_property_data_type, unsigned int n_files, unsigned int chunk_size_bytes)
Definition
HdfData.cpp:45
MeshLib::IO::HdfData::data_space
std::vector< Hdf5DimType > data_space
Definition
HdfData.h:33
MeshLib::IO::HdfData::data_start
void const * data_start
Definition
HdfData.h:32
MeshLib
IO
XDMF
HdfData.h
Generated by
1.10.0