summaryrefslogtreecommitdiff
path: root/Ganlib/src/hdf5_aux.h
blob: 9023cd39dde4d47752f14cf568a2f120335341f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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