summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack_copy.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2007-11-16 20:15:19 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2007-11-16 20:15:19 (GMT)
commitd3507c4a5aaf7709e7794ceb6a54912ad123a6e0 (patch)
treec5fced5305abc85381f4d2f4403a956366c75f1c /tools/h5repack/h5repack_copy.c
parentbe3ccfa47de5d0e80cc64421d6b4b9ed3df8bbcc (diff)
downloadhdf5-d3507c4a5aaf7709e7794ceb6a54912ad123a6e0.zip
hdf5-d3507c4a5aaf7709e7794ceb6a54912ad123a6e0.tar.gz
hdf5-d3507c4a5aaf7709e7794ceb6a54912ad123a6e0.tar.bz2
[svn-r14264] new features: 1) new usage for h5diff " A la" h5dump format
2) new usage for h5repack and new command line parsing using the tools library parsing code tested: windows, linux, solaris
Diffstat (limited to 'tools/h5repack/h5repack_copy.c')
-rw-r--r--tools/h5repack/h5repack_copy.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/h5repack/h5repack_copy.c b/tools/h5repack/h5repack_copy.c
index 6c26cee..6ad97d7 100644
--- a/tools/h5repack/h5repack_copy.c
+++ b/tools/h5repack/h5repack_copy.c
@@ -437,6 +437,9 @@ int do_copy_objects(hid_t fidin,
*/
case H5TRAV_TYPE_DATASET:
+ if (options->verbose)
+ printf(FORMAT_OBJ,"dset",travt->objs[i].name );
+
has_filter = 0;
/* early detection of references */
@@ -777,6 +780,9 @@ int do_copy_objects(hid_t fidin,
*/
case H5TRAV_TYPE_NAMED_DATATYPE:
+ if(options->verbose)
+ printf(FORMAT_OBJ, "type", travt->objs[i].name);
+
if((type_in = H5Topen2(fidin, travt->objs[i].name, H5P_DEFAULT)) < 0)
goto error;
@@ -798,8 +804,7 @@ int do_copy_objects(hid_t fidin,
if(H5Tclose(type_out) < 0)
goto error;
- if(options->verbose)
- printf(FORMAT_OBJ, "type", travt->objs[i].name);
+
break;
@@ -816,6 +821,10 @@ int do_copy_objects(hid_t fidin,
case H5TRAV_TYPE_LINK:
case H5TRAV_TYPE_UDLINK:
{
+
+ if(options->verbose)
+ printf(FORMAT_OBJ, "link", travt->objs[i].name);
+
if(H5Lcopy(fidin, travt->objs[i].name,fidout, travt->objs[i].name, H5P_DEFAULT, H5P_DEFAULT) < 0)
goto error;