diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2004-04-27 19:16:35 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2004-04-27 19:16:35 (GMT) |
commit | 85b599e9332c1d7d6f454425b66ad43e78954814 (patch) | |
tree | 569f6dc4c55759da189280c4c49966052ed81b1a /c++/src/H5DataType.cpp | |
parent | 4fa0c3f5bc09d0948e1dde9c3ed3ebc700109936 (diff) | |
download | hdf5-85b599e9332c1d7d6f454425b66ad43e78954814.zip hdf5-85b599e9332c1d7d6f454425b66ad43e78954814.tar.gz hdf5-85b599e9332c1d7d6f454425b66ad43e78954814.tar.bz2 |
[svn-r8423] Purpose: New feature
Description: A new exception handler for datatype conversion(set through
H5Pset_type_conv_cb) to replace the old overflow callback function(set
through H5Tset_overflow). This new handler can deal with overflow, precision
loss and fraction truncate during datatype conversion.
Platforms tested: h5committest
Misc. update: release_docs
Diffstat (limited to 'c++/src/H5DataType.cpp')
-rw-r--r-- | c++/src/H5DataType.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/c++/src/H5DataType.cpp b/c++/src/H5DataType.cpp index 290ebb7..b6249fe 100644 --- a/c++/src/H5DataType.cpp +++ b/c++/src/H5DataType.cpp @@ -185,24 +185,6 @@ void DataType::convert( const DataType& dest, hsize_t nelmts, void *buf, void *b } } -// Sets the overflow handler to a specified function. -void DataType::setOverflow( H5T_overflow_t func ) const -{ - // Call C routine H5Tset_overflow to set the overflow handler - herr_t ret_value = H5Tset_overflow( func ); - if( ret_value < 0 ) - { - throw DataTypeIException("DataType::setOverflow", "H5Tset_overflow failed"); - } -} - -// Returns a pointer to the current global overflow function. -H5T_overflow_t DataType::getOverflow(void) const -{ - return( H5Tget_overflow()); // C routine - // NULL can be returned as well -} - // Locks a datatype. void DataType::lock() const { |