diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-04-05 18:30:20 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-04-05 18:30:20 (GMT) |
commit | 150b85cc44903c005009552d692da50a4aa6c86f (patch) | |
tree | 684ec0d9f38d2c5c888073726e78b8793115b304 /c++/src/H5Include.h | |
parent | 743686ebe1b0d961b6ac5ac9aa035eac36e9b629 (diff) | |
download | hdf5-150b85cc44903c005009552d692da50a4aa6c86f.zip hdf5-150b85cc44903c005009552d692da50a4aa6c86f.tar.gz hdf5-150b85cc44903c005009552d692da50a4aa6c86f.tar.bz2 |
[svn-r26730] 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;
Merge from trunk r26643
Platforms tested:
Linux/64 (platypus)
Linux/32 2.6 (jam Intel 15.0)
SunOS 5.11 (emu)
Diffstat (limited to 'c++/src/H5Include.h')
-rw-r--r-- | c++/src/H5Include.h | 12 |
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 + |