diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-04-25 06:30:42 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-04-25 06:30:42 (GMT) |
commit | 91890eb281e3d8da29afb2e3584bb109c026713c (patch) | |
tree | 61baba20107e4a1e8e5b1c3a14e808352cab16ce /c++/src/H5DcreatProp.cpp | |
parent | c036aa157516f80a14918904673e0d380041a821 (diff) | |
download | hdf5-91890eb281e3d8da29afb2e3584bb109c026713c.zip hdf5-91890eb281e3d8da29afb2e3584bb109c026713c.tar.gz hdf5-91890eb281e3d8da29afb2e3584bb109c026713c.tar.bz2 |
[svn-r29787] Purpose: Add new wrapper
Description:
Added wrapper for H5Tset_nbit: void DSetCreatPropList::setNbit() const.
Merged from trunk r29786.
Platforms tested:
Linux/32 2.6 (jam)
Linux/64 (platypus)
Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5DcreatProp.cpp')
-rw-r--r-- | c++/src/H5DcreatProp.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/c++/src/H5DcreatProp.cpp b/c++/src/H5DcreatProp.cpp index 60cf0fc..b2a3e96 100644 --- a/c++/src/H5DcreatProp.cpp +++ b/c++/src/H5DcreatProp.cpp @@ -251,6 +251,28 @@ void DSetCreatPropList::setSzip(unsigned int options_mask, unsigned int pixels_p } //-------------------------------------------------------------------------- +// Function: DSetCreatPropList::setNbit +///\brief Sets up for the use of the Nbit compression filter. +///\exception H5::PropListIException +///\par Description +/// The associate C function sets an Nbit compression filter, +/// H5Z_FILTER_NBIT, for a dataset. For more information about +/// Nbit compression, please refer to the C layer Reference +/// Manual at: +/// http://www.hdfgroup.org/HDF5/doc/RM/RM_H5P.html#Property-setNbit +// Programmer Binh-Minh Ribler - Apr, 2016 +//-------------------------------------------------------------------------- +void DSetCreatPropList::setNbit() const +{ + herr_t ret_value = H5Pset_nbit(id); + if( ret_value < 0 ) + { + throw PropListIException("DSetCreatPropList::setNbit", + "H5Pset_nbit failed"); + } +} + +//-------------------------------------------------------------------------- // Function: DSetCreatPropList::setFillValue ///\brief Sets a dataset fill value ///\param fvalue_type - IN: Data type for the value passed via \a value |