summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5trav.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2003-12-17 14:07:41 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2003-12-17 14:07:41 (GMT)
commitcd7b4b8b90adc487f9cd4ee05f2425eeb5f7f84d (patch)
treed8f78540c20e8e338086b4bcb0d07374baf7d165 /tools/lib/h5trav.c
parent52a46001cbeeb902d0fe7779ddcbbf0da0907c15 (diff)
downloadhdf5-cd7b4b8b90adc487f9cd4ee05f2425eeb5f7f84d.zip
hdf5-cd7b4b8b90adc487f9cd4ee05f2425eeb5f7f84d.tar.gz
hdf5-cd7b4b8b90adc487f9cd4ee05f2425eeb5f7f84d.tar.bz2
[svn-r7966] Purpose:
h5repack new features Description: added debugging functions and a hard link generated dataset for the test suite Solution: Platforms tested: linux solaris 2.7 IRIX Misc. update:
Diffstat (limited to 'tools/lib/h5trav.c')
-rw-r--r--tools/lib/h5trav.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/tools/lib/h5trav.c b/tools/lib/h5trav.c
index 4747aad..fc64fc7 100644
--- a/tools/lib/h5trav.c
+++ b/tools/lib/h5trav.c
@@ -467,3 +467,51 @@ int traverse( hid_t loc_id,
return inserted_objs;
}
+
+
+
+/*-------------------------------------------------------------------------
+ * Function: diff_list
+ *
+ * Purpose: print list of objects in file
+ *
+ * Return: void
+ *
+ * Programmer: Pedro Vicente, pvn@ncsa.uiuc.edu
+ *
+ * Date: May 9, 2003
+ *
+ * Comments:
+ *
+ * Modifications:
+ *
+ *-------------------------------------------------------------------------
+ */
+void h5trav_printinfo(int nobjs, trav_info_t *travi)
+{
+ int i;
+ for ( i = 0; i < nobjs; i++)
+ {
+ switch ( travi[i].type )
+ {
+ case H5G_GROUP:
+ printf(" %-10s %s\n", "group", travi[i].name );
+ break;
+ case H5G_DATASET:
+ printf(" %-10s %s\n", "dataset", travi[i].name );
+ break;
+ case H5G_TYPE:
+ printf(" %-10s %s\n", "datatype", travi[i].name );
+ break;
+ case H5G_LINK:
+ printf(" %-10s %s\n", "link", travi[i].name );
+ break;
+ default:
+ printf(" %-10s %s\n", "User defined object", travi[i].name );
+ break;
+ }
+ }
+}
+
+
+