00001
00002
00003
00004
00005 #ifndef __F5private_H
00006 #define __F5private_H
00007
00008 #include <F5/hdf5inc.h>
00009 #include <F5/F5F.h>
00010
00011 #ifdef __cplusplus
00012 extern "C"
00013 {
00014 #endif
00015
00021 hid_t F5Acreate(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t create_plist );
00022
00023 void F5T_save_perm_vector(hid_t location, int rank, int perm_vector[]);
00024
00025 hid_t F5I_create_contents(hid_t File_id);
00026
00027
00028
00029
00030 herr_t F5Glink(hid_t loc_id, H5G_link_t link_type, const char *current_name, const char *new_name);
00031
00032 herr_t F5Glink_soft_to_id(hid_t loc_id, hid_t existing_id, const char*linkname);
00033
00034
00035
00036
00037
00038
00039 char*F5I_timegroup(const double*time, char*destbuf, size_t len);
00040
00041
00042
00043
00044 void F5I_add_grid(F5Path*fpath, const char*gridname, const double*time);
00045
00046
00047
00048
00049
00050
00051 void F5I_add_field(F5Path*fpath, const char*fieldname, const char*property);
00052
00053 extern int F5printf_indent;
00054 F5_API void F5printf(int verbosity, const char *fmt,...);
00055
00056
00057 F5_API herr_t F_H5Aread(hid_t attr_id, hid_t mem_type_id, void *buf, const char*name );
00058
00059
00060 #define F5check(HDF5call) {herr_t err = HDF5call; if (err<0) \
00061 F5printf(1, "** %s returned error in %s:%d\n",\
00062 #HDF5call, __FILE__, __LINE__ ); }
00063
00064 #ifndef H5_USE_16_API
00065
00066 #ifndef NDEBUG
00067 #define H5Acreate(loc,name,type,space,plist) ( F5printf(50,"H5Acreate(%s)", name), \
00068 H5Acreate(loc, name, type, space, plist) )
00069 #define H5Gcreate(loc,name,hint) (F5printf(50,"H5Gcreate(%s)", name), \
00070 H5Gcreate(loc, name, hint) )
00071 #endif
00072 #endif
00073
00074 #ifdef __cplusplus
00075 }
00076 #endif
00077
00078 #endif
00079