diff options
| author | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
|---|---|---|
| committer | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
| commit | 7dfcc480ba1e19bd3232349fc733caef94034292 (patch) | |
| tree | 03ee104eb8846d5cc1a981d267687a729185d3f3 /Ganlib/src/hdf5_aux.h | |
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Ganlib/src/hdf5_aux.h')
| -rw-r--r-- | Ganlib/src/hdf5_aux.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Ganlib/src/hdf5_aux.h b/Ganlib/src/hdf5_aux.h new file mode 100644 index 0000000..9023cd3 --- /dev/null +++ b/Ganlib/src/hdf5_aux.h @@ -0,0 +1,40 @@ + +/**********************************/ +/* C API for hdf5 file support */ +/* (auxiliary functions) */ +/* author: A. Hebert (30/11/2021) */ +/**********************************/ + +/* + Copyright (C) 2021 Ecole Polytechnique de Montreal + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + */ + +#if defined(HDF5_LIB) +#include "ganlib.h" +#include "hdf5.h" +void hdf5_open_file_c(const char *, hid_t *, int_32); +void hdf5_close_file_c(hid_t *); +void hdf5_list_c(hid_t *, const char *); +void hdf5_get_dimensions_c(hid_t *, const char *, int_32 *); +void hdf5_get_num_group_c(hid_t *, const char *, int_32 *); +void hdf5_list_datasets_c(hid_t *, const char *, int_32 *, char *idata); +void hdf5_list_groups_c(hid_t *, const char *, int_32 *, char *idata); +void hdf5_info_c(hid_t *, const char *, int_32 *, int_32 *, int_32 *, int_32 *); +int_32 hdf5_group_exists_c(hid_t *, const char *); +void hdf5_create_group_c(hid_t *, const char *); +void hdf5_delete_c(hid_t *, const char *); +void hdf5_copy_c(hid_t *, const char *, hid_t *, const char *); +void hdf5_read_data_int_c(hid_t *, const char *, int_32 *); +void hdf5_read_data_real4_c(hid_t *, const char *, float *); +void hdf5_read_data_real8_c(hid_t *, const char *, double *); +void hdf5_read_data_string_c(hid_t *, const char *, char *); +void hdf5_write_data_int_c(hid_t *, const char *, int_32, int_32 *, int_32 *); +void hdf5_write_data_real4_c(hid_t *, const char *, int_32, int_32 *, float *); +void hdf5_write_data_real8_c(hid_t *, const char *, int_32, int_32 *, double *); +void hdf5_write_data_string_c(hid_t *, const char *, int_32, int_32, int_32 *, char *); +#endif |
