OGS
HdfData.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <hdf5.h>
7
8#include <string>
9#include <vector>
10
12
13namespace MeshLib::IO
14{
15using Hdf5DimType = hsize_t;
16
17struct HdfData final
18{
19 HdfData(void const* data_start, std::size_t size_partitioned_dim,
20 std::size_t size_tuple, std::string const& name,
21 MeshPropertyDataType mesh_property_data_type, unsigned int n_files,
22 unsigned int chunk_size_bytes);
23 void const* data_start;
24 std::vector<Hdf5DimType> data_space;
25 std::vector<Hdf5DimType> offsets;
26 std::vector<Hdf5DimType> file_space;
27 std::vector<Hdf5DimType> chunk_space;
28 std::string name;
29 int64_t data_type;
30};
31
32} // namespace MeshLib::IO
MeshPropertyDataType
hsize_t Hdf5DimType
Definition HdfData.h:15
std::vector< Hdf5DimType > file_space
Definition HdfData.h:26
std::vector< Hdf5DimType > offsets
Definition HdfData.h:25
std::vector< Hdf5DimType > chunk_space
Definition HdfData.h:27
std::string name
Definition HdfData.h:28
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:39
std::vector< Hdf5DimType > data_space
Definition HdfData.h:24
void const * data_start
Definition HdfData.h:23