Function parpe::hdf5CreateFile¶
Defined in File hdf5Misc.h
Function Documentation¶
-
H5::H5File parpe::hdf5CreateFile(std::string const &filename, bool overwrite = false)¶
Create and open HDF5 file for writing.
Creates parent path if it doesn’t exist before creating the file. Throws HDF5Exception on failure.
- Parameters:
filename – Filename, optionally including path of the new file
overwrite – Overwrite file if exists. If false and file exists, throws HDF5Exception on failure.
- Returns:
HDF5 file handle of the created/opened file