[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)
This commit is contained in:
Binh-Minh Ribler
2016-04-25 01:09:46 -05:00
parent 32bdd82cc8
commit 0d5910683d
4 changed files with 155 additions and 21 deletions

View File

@@ -250,6 +250,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