RAII class for HDF5 file object.
More...
#include <mckl/utility/hdf5.hpp>
Inherits mckl::HDF5ID< HDF5File >.
RAII class for HDF5 file object.
Definition at line 141 of file hdf5.hpp.
◆ HDF5File() [1/4]
| mckl::HDF5File::HDF5File |
( |
| ) |
|
|
default |
◆ HDF5File() [2/4]
| mckl::HDF5File::HDF5File |
( |
const std::string & |
filename | ) |
|
|
inlineexplicit |
Open an HDF5 file if it possible, otherwise create a new one.
Definition at line 149 of file hdf5.hpp.
◆ HDF5File() [3/4]
| mckl::HDF5File::HDF5File |
( |
const std::string & |
filename, |
|
|
bool |
append |
|
) |
| |
|
inline |
Open or create an HDF5 file.
- Parameters
-
| filename | The name of the file to open/create |
| append | If true then an existing file is open, otherwise a new one is created |
Definition at line 165 of file hdf5.hpp.
◆ HDF5File() [4/4]
| mckl::HDF5File::HDF5File |
( |
const std::string & |
filename, |
|
|
bool |
append, |
|
|
bool |
read_only |
|
) |
| |
|
inline |
Open or create an HDF5 file.
- Parameters
-
| filename | The name of the file to open/create |
| append | If true then an existing file is open, otherwise a new one is created |
| read_only | If true the file will be opened in read only mode. |
Definition at line 179 of file hdf5.hpp.
◆ close()
| static void mckl::HDF5File::close |
( |
::hid_t |
id | ) |
|
|
inlinestatic |
◆ copy()