summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.h
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2003-12-16 18:08:45 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2003-12-16 18:08:45 (GMT)
commitdc4f40f02f16d182ffad1fcbfa3dfdaf0d9426b9 (patch)
tree9914f9b0c661d5bdd73e83f559a4048fe6975724 /tools/h5repack/h5repack.h
parent991bd6c9e3f590104269c70c4e7becb55770091f (diff)
downloadhdf5-dc4f40f02f16d182ffad1fcbfa3dfdaf0d9426b9.zip
hdf5-dc4f40f02f16d182ffad1fcbfa3dfdaf0d9426b9.tar.gz
hdf5-dc4f40f02f16d182ffad1fcbfa3dfdaf0d9426b9.tar.bz2
[svn-r7962] Purpose:
h5repack new features Description: added the copy of referenced objects Solution: Platforms tested: linux solaris 2.7 IRIX Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack.h')
-rw-r--r--tools/h5repack/h5repack.h41
1 files changed, 39 insertions, 2 deletions
diff --git a/tools/h5repack/h5repack.h b/tools/h5repack/h5repack.h
index bb0f8fc..9e857e7 100644
--- a/tools/h5repack/h5repack.h
+++ b/tools/h5repack/h5repack.h
@@ -64,6 +64,7 @@ typedef struct {
char path[MAX_NC_NAME]; /* name of object */
comp_info_t comp; /* compression information */
chunk_info_t chunk; /* chunk information */
+ hid_t refobj_id; /* object ID */
} pack_info_t;
/* store a table of all objects */
@@ -129,7 +130,7 @@ int copy_file(const char* fnamein,
void print_objlist(const char *filename,
int nobjects,
- trav_info_t *info );
+ trav_info_t *travi );
int do_copy_file(hid_t fidin,
hid_t fidout,
@@ -139,13 +140,39 @@ int do_copy_file(hid_t fidin,
int copy_attr(hid_t loc_in,
hid_t loc_out,
- pack_opt_t *options
+ pack_opt_t *options,
+ int nobjects, /* number of objects */
+ trav_info_t *travi, /* array of object names */
+ hid_t fidout /*for saving references */
);
void read_info(const char *filename,pack_opt_t *options);
+void close_obj(H5G_obj_t obj_type, hid_t obj_id);
+
+const char* MapIdToName(hid_t refobj_id,
+ int nobjects, /* number of objects */
+ trav_info_t *travi, /* array of object names */
+ pack_opt_t *options) /* repack options */;
+
+
+
+int do_copy_refobjs(hid_t fidin,
+ hid_t fidout,
+ int nobjects, /* number of objects */
+ trav_info_t *travi, /* array of object names */
+ pack_opt_t *options); /* repack options */
+
+int do_copy_refobjs_inattr(hid_t loc_in,
+ hid_t loc_out,
+ pack_opt_t *options,
+ int nobjects, /* number of objects */
+ trav_info_t *travi, /* array of object names */
+ hid_t fidout /* for saving references */
+ );
+
/*-------------------------------------------------------------------------
* options table
@@ -224,6 +251,16 @@ int write_attr(hid_t loc_id,
hid_t type_id,
void *buf);
+
+void write_attr_in(hid_t loc_id,
+ const char* dset_name, /* for saving reference to dataset*/
+ hid_t fid, /* for reference create */
+ int make_diffs /* flag to modify data buffers */);
+
+void write_dset_in(hid_t loc_id,
+ const char* dset_name, /* for saving reference to dataset*/
+ hid_t file_id,
+ int make_diffs /* flag to modify data buffers */);