g4tools  5.4.0
hdf5_h
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_hdf5_h
5 #define tools_hdf5_h
6 
7 #ifndef TOOLS_USE_OUREX_HDF5
8 #include <hdf5.h>
9 #else
10 #include <ourex_hdf5.h>
11 #endif
12 
13 
14 #if (H5_VERS_MAJOR>=1) && (H5_VERS_MINOR<=6)
15 #define tools_H5Dopen H5Dopen
16 #define tools_H5Dcreate H5Dcreate
17 #define tools_H5Acreate H5Acreate
18 #define tools_H5Tarray_create H5Tarray_create
19 #define tools_H5Tget_array_dims H5Tget_array_dims
20 #define tools_H5Gcreate H5Gcreate
21 #define tools_H5Gopen H5Gopen
22 #define tools_H5Aiterate H5Aiterate
23 #define tools_H5free_memory free
24 #else
25 #define tools_H5Dopen H5Dopen1
26 #define tools_H5Dcreate H5Dcreate1
27 #define tools_H5Acreate H5Acreate1
28 #define tools_H5Tarray_create H5Tarray_create1
29 #define tools_H5Tget_array_dims H5Tget_array_dims1
30 #define tools_H5Gcreate H5Gcreate1
31 #define tools_H5Gopen H5Gopen1
32 #define tools_H5Aiterate H5Aiterate1
33 #define tools_H5free_memory H5free_memory
34 #endif
35 
36 #endif