OGS
posix/fileIO.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
5
6#include <hdf5.h>
7namespace MeshLib::IO
8{
9int64_t createFile(std::filesystem::path const& filepath, unsigned int)
10{
11 return H5Fcreate(filepath.string().c_str(), H5F_ACC_TRUNC, H5P_DEFAULT,
12 H5P_DEFAULT);
13}
14
15int64_t openHDF5File(std::filesystem::path const& filepath)
16{
17 return H5Fopen(filepath.string().c_str(), H5F_ACC_RDWR, H5P_DEFAULT);
18}
19
21{
22 return H5P_DEFAULT;
23}
24} // namespace MeshLib::IO
int64_t createHDF5TransferPolicy()
int64_t openHDF5File(std::filesystem::path const &filepath, unsigned int n_files)
int64_t createFile(std::filesystem::path const &filepath, unsigned int n_files)