summaryrefslogtreecommitdiffstats
path: root/c++/src
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
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')
-rw-r--r--c++/src/H5DcreatProp.cpp22
-rw-r--r--c++/src/H5DcreatProp.h3
-rw-r--r--c++/src/H5IdComponent.cpp16
3 files changed, 25 insertions, 16 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
diff --git a/c++/src/H5DcreatProp.h b/c++/src/H5DcreatProp.h
index 792956a..51347e8 100644
--- a/c++/src/H5DcreatProp.h
+++ b/c++/src/H5DcreatProp.h
@@ -114,6 +114,9 @@ class H5_DLLCPP DSetCreatPropList : public ObjCreatPropList {
// Sets SZIP compression method.
void setSzip(unsigned int options_mask, unsigned int pixels_per_block) const;
+ // Sets N-bit compression method.
+ void setNbit() const;
+
///\brief Returns this class name.
virtual H5std_string fromClass () const { return("DSetCreatPropList"); }
diff --git a/c++/src/H5IdComponent.cpp b/c++/src/H5IdComponent.cpp
index 4f8c4a2..6d0c39f 100644
--- a/c++/src/H5IdComponent.cpp
+++ b/c++/src/H5IdComponent.cpp
@@ -36,22 +36,6 @@ bool IdComponent::H5cppinit = false;
bool IdComponent::H5dontAtexit_called = false;
//--------------------------------------------------------------------------
-// Function: IdComponent overloaded constructor
-///\brief Creates an IdComponent object using the id of an existing
-/// object. - Obsolete, will be removed in 1.8.17
-// Param h5_id - IN: Id of an existing object
-// Exception H5::DataTypeIException
-// Programmer Binh-Minh Ribler - 2000
-//
-// *** Deprecation warning ***
-// This constructor is no longer appropriate because the data member "id" had
-// been moved to the sub-classes. It will be removed in 1.10 release. If its
-// removal does not raise any problems in 1.10, it will be removed from 1.8 in
-// subsequent releases.
-//--------------------------------------------------------------------------
-IdComponent::IdComponent(const hid_t h5_id) {}
-
-//--------------------------------------------------------------------------
// Function: IdComponent::incRefCount
///\brief Increment reference counter for a given id.
// Programmer Binh-Minh Ribler - May 2005