summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Include.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2015-03-29 04:37:28 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2015-03-29 04:37:28 (GMT)
commit39fb0401a089a3c3f9e9e2105eaaa69c9a4ab8a9 (patch)
tree243391a9261a95dc32a86ebf78f74796875b3745 /c++/src/H5Include.h
parent8e5a71c716c4d88b273137a81376f1a63ba54900 (diff)
downloadhdf5-39fb0401a089a3c3f9e9e2105eaaa69c9a4ab8a9.zip
hdf5-39fb0401a089a3c3f9e9e2105eaaa69c9a4ab8a9.tar.gz
hdf5-39fb0401a089a3c3f9e9e2105eaaa69c9a4ab8a9.tar.bz2
[svn-r26643] Purpose: Adding new wrappers (HDFFR-9167 partially)
Description: Added wrappers for C functions H5P[s/g]et_libver_bounds and wrappers for getting object header version // Sets bounds on versions of library format to be used when creating // or writing objects. void setLibverBounds(H5F_libver_t libver_low, H5F_libver_t libver_high) const; // Gets the current settings for the library version format bounds. void getLibverBounds(H5F_libver_t& libver_low, H5F_libver_t& libver_high) const; // Returns the object header version of an object in a file or group, // given the object's name. unsigned childObjVersion(const char* objname) const; unsigned childObjVersion(const H5std_string& objname) const; Platforms tested: Linux/64 (platypus) Linux/32 2.6 SunOS 5.11
Diffstat (limited to 'c++/src/H5Include.h')
-rw-r--r--c++/src/H5Include.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/c++/src/H5Include.h b/c++/src/H5Include.h
index 87cb182..1e0e952 100644
--- a/c++/src/H5Include.h
+++ b/c++/src/H5Include.h
@@ -28,3 +28,15 @@ typedef int bool;
const bool false = 0;
const bool true = 1;
#endif
+
+// These are defined in H5Opkg.h, which should not be included in the C++ API,
+// so re-define them here for now.
+
+/* Initial version of the object header format */
+#define H5O_VERSION_1 1
+
+/* Revised version - leaves out reserved bytes and alignment padding, and adds
+ * magic number as prefix and checksum as suffix for all chunks.
+ */
+#define H5O_VERSION_2 2
+