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
21
22namespace MeshLib::IO
23{
24using Hdf5DimType = hsize_t;
25
26struct 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
Enum for all propertyVector data types and XDMF ParentDataTypes.
MeshPropertyDataType
hsize_t Hdf5DimType
Definition HdfData.h:24
std::vector< Hdf5DimType > file_space
Definition HdfData.h:35
std::vector< Hdf5DimType > offsets
Definition HdfData.h:34
std::vector< Hdf5DimType > chunk_space
Definition HdfData.h:36
std::string name
Definition HdfData.h:37
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
std::vector< Hdf5DimType > data_space
Definition HdfData.h:33
void const * data_start
Definition HdfData.h:32