diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-10-22 21:30:19 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-10-22 21:30:19 (GMT) |
commit | ce5c245a95ac147248e689ea3f2f9c4969bcc233 (patch) | |
tree | 04c309d3830b0ba165c98a5ac820f5c58fb9ddd4 /tools/h5diff/h5trav.h | |
parent | 918b657dddfbe74c5cd419865536fa6c6104ae75 (diff) | |
download | hdf5-ce5c245a95ac147248e689ea3f2f9c4969bcc233.zip hdf5-ce5c245a95ac147248e689ea3f2f9c4969bcc233.tar.gz hdf5-ce5c245a95ac147248e689ea3f2f9c4969bcc233.tar.bz2 |
[svn-r7702] Purpose:
h5diff maitainance
Description:
separated the h5diff source between several modules
there is a public module with a new function "h5diff" that can be called by an application
program (h5repack will use it )
added a new verbose option that can turn off all printf
Platforms tested:
linux
solaris
IRIX
Misc. update:
Diffstat (limited to 'tools/h5diff/h5trav.h')
-rw-r--r-- | tools/h5diff/h5trav.h | 56 |
1 files changed, 37 insertions, 19 deletions
diff --git a/tools/h5diff/h5trav.h b/tools/h5diff/h5trav.h index 9eac307..250e0c3 100644 --- a/tools/h5diff/h5trav.h +++ b/tools/h5diff/h5trav.h @@ -12,27 +12,29 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* - * Programmer: Pedro Vicente, pvn@ncsa.uiuc.edu - * Monday, 4. November 2002 - */ #ifndef H5TRAV_H__ #define H5TRAV_H__ +#include "hdf5.h" -#ifdef __cplusplus -extern "C" { -#endif +/*------------------------------------------------------------------------- + * struct to store name and type of an object + *------------------------------------------------------------------------- + */ -/*struct to store name and type of an object */ typedef struct info_t { char *name; int type; } info_t; -/*struct to store basic info about an object */ + +/*------------------------------------------------------------------------- + * struct to store basic info about an object + *------------------------------------------------------------------------- + */ + typedef struct obj_t { haddr_t objno; unsigned flags[2]; @@ -41,7 +43,12 @@ typedef struct obj_t { int type; } obj_t; -/*struct that stores all objects, excluding shared objects */ + +/*------------------------------------------------------------------------- + * struct that stores all objects, excluding shared objects + *------------------------------------------------------------------------- + */ + typedef struct table_t { int size; int nobjs; @@ -49,23 +56,34 @@ typedef struct table_t { } table_t; -/* public methods */ +/*------------------------------------------------------------------------- + * "info" public functions + *------------------------------------------------------------------------- + */ + +#ifdef __cplusplus +extern "C" { +#endif + int H5get_object_info( hid_t file_id, info_t *info ); +int info_getindex( const char *obj, int nobjs, info_t *info ); +void info_free(info_t *info, int nobjs); + +#ifdef __cplusplus +} +#endif + +/*------------------------------------------------------------------------- + * table private functions + *------------------------------------------------------------------------- + */ -/* table methods */ void table_init(table_t **table); void table_free(table_t *table); int table_search_obj(haddr_t objno, table_t *table ); void table_add_obj(haddr_t objno, char *objname, int type, table_t *table); void table_add_flags(unsigned *flags, char *objname, int type, table_t *table); -void info_free(info_t *info, int nobjs); - - - -#ifdef __cplusplus -} -#endif #endif /* H5TRAV_H__ */ |