summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DcreatProp.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-25 06:09:46 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-25 06:09:46 (GMT)
commit0d5910683d3ed82f80164573146c6c5aaf53db48 (patch)
tree3d7bcb09503fd0588ee8c1113d3f447aa669b5ce /c++/src/H5DcreatProp.cpp
parent32bdd82cc8f5a4fa6821a5b755f99178e0f379d4 (diff)
downloadhdf5-0d5910683d3ed82f80164573146c6c5aaf53db48.zip
hdf5-0d5910683d3ed82f80164573146c6c5aaf53db48.tar.gz
hdf5-0d5910683d3ed82f80164573146c6c5aaf53db48.tar.bz2
[svn-r29786] Purpose: Add new wrapper
Description: Added wrapper for H5Tset_nbit: void DSetCreatPropList::setNbit() const. 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.cpp22
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