7inline hid_t h5f_open(
const char* filename,
unsigned flags, hid_t fapl_id) {
8 return H5Fopen(filename, flags, fapl_id);
12inline hid_t h5f_create(
const char* filename,
unsigned flags, hid_t fcpl_id, hid_t fapl_id) {
13 hid_t file_id = H5Fcreate(filename, flags, fcpl_id, fapl_id);
15 if (file_id == H5I_INVALID_HID) {
21inline ssize_t h5f_get_name(hid_t obj_id,
char* name,
size_t size) {
22 ssize_t nread = H5Fget_name(obj_id, name, size);
30inline herr_t h5f_flush(hid_t object_id, H5F_scope_t scope) {
31 herr_t err = H5Fflush(object_id, scope);
39inline herr_t h5f_get_filesize(hid_t file_id, hsize_t* size) {
40 herr_t err = H5Fget_filesize(file_id, size);
48inline hssize_t h5f_get_freespace(hid_t file_id) {
49 hssize_t free_space = H5Fget_freespace(file_id);
52 std::string(
"Unable to retrieve unused space of file "));
Definition H5_definitions.hpp:22
static void ToException(const std::string &prefix_msg)
Definition H5Exception_misc.hpp:43