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) {
 
   16        HDF5ErrMapper::ToException<FileException>(std::string(
"Failed to create file ") + filename);
 
   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);
 
   24        HDF5ErrMapper::ToException<FileException>(std::string(
"Failed to get file from id"));
 
   30inline herr_t h5f_flush(hid_t object_id, H5F_scope_t scope) {
 
   31    herr_t err = H5Fflush(object_id, scope);
 
   33        HDF5ErrMapper::ToException<FileException>(std::string(
"Failed to flush file"));
 
   39inline herr_t h5f_get_filesize(hid_t file_id, hsize_t* size) {
 
   40    herr_t err = H5Fget_filesize(file_id, size);
 
   42        HDF5ErrMapper::ToException<FileException>(std::string(
"Unable to retrieve size of file"));
 
   48inline hssize_t h5f_get_freespace(hid_t file_id) {
 
   49    hssize_t free_space = H5Fget_freespace(file_id);
 
   51        HDF5ErrMapper::ToException<FileException>(
 
   52            std::string(
"Unable to retrieve unused space of file "));
 
   57#if H5_VERSION_GE(1, 10, 0) 
   58inline herr_t h5f_start_swmr_write(hid_t file_id) {
 
   59    herr_t err = H5Fstart_swmr_write(file_id);
 
   61        HDF5ErrMapper::ToException<FileException>(std::string(
"Failed to start SWMR write"));
 
Definition assert_compatible_spaces.hpp:15