summaryrefslogtreecommitdiffstats
path: root/c++/src/H5AtomType.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-08-08 15:42:39 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-08-08 15:42:39 (GMT)
commitf74bef15ced59291d51e0d3428e2dd595ed37260 (patch)
tree7af4e30ad90920545c29911e4b34e8da6d290bf1 /c++/src/H5AtomType.cpp
parentea15f348a1254b5a4ed3e8039f191a0430e4c3f2 (diff)
downloadhdf5-f74bef15ced59291d51e0d3428e2dd595ed37260.zip
hdf5-f74bef15ced59291d51e0d3428e2dd595ed37260.tar.gz
hdf5-f74bef15ced59291d51e0d3428e2dd595ed37260.tar.bz2
[svn-r11210] Purpose: Code improvement
Description: Made use of IdComponent::inMemFunc in more classes. Platforms tested: Linux 2.4 (heping) SunOS 5.8 64-bit (sol)
Diffstat (limited to 'c++/src/H5AtomType.cpp')
-rw-r--r--c++/src/H5AtomType.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/c++/src/H5AtomType.cpp b/c++/src/H5AtomType.cpp
index c8c38e9..56bb6eb 100644
--- a/c++/src/H5AtomType.cpp
+++ b/c++/src/H5AtomType.cpp
@@ -66,7 +66,7 @@ void AtomType::setSize( size_t size ) const
herr_t ret_value = H5Tset_size( id, size );
if( ret_value < 0 )
{
- throw DataTypeIException("AtomType::setSize", "H5Tset_size failed");
+ throw DataTypeIException(inMemFunc("setSize"), "H5Tset_size failed");
}
}
@@ -88,7 +88,7 @@ H5T_order_t AtomType::getOrder() const
// return a byte order constant if successful
if( type_order == H5T_ORDER_ERROR )
{
- throw DataTypeIException("AtomType::getOrder",
+ throw DataTypeIException(inMemFunc("getOrder"),
"H5Tget_order returns H5T_ORDER_ERROR");
}
return( type_order );
@@ -142,7 +142,7 @@ void AtomType::setOrder( H5T_order_t order ) const
herr_t ret_value = H5Tset_order( id, order );
if( ret_value < 0 )
{
- throw DataTypeIException("AtomType::setOrder", "H5Tset_order failed");
+ throw DataTypeIException(inMemFunc("setOrder"), "H5Tset_order failed");
}
}
@@ -164,7 +164,7 @@ size_t AtomType::getPrecision() const
// returns number of significant bits if successful
if( num_signi_bits == 0 )
{
- throw DataTypeIException("AtomType::getPrecision",
+ throw DataTypeIException(inMemFunc("getPrecision"),
"H5Tget_precision returns invalid number of significant bits");
}
return( num_signi_bits );
@@ -186,7 +186,7 @@ void AtomType::setPrecision( size_t precision ) const
herr_t ret_value = H5Tset_precision( id, precision );
if( ret_value < 0 )
{
- throw DataTypeIException("AtomType::setPrecision", "H5Tset_precision failed");
+ throw DataTypeIException(inMemFunc("setPrecision"), "H5Tset_precision failed");
}
}
@@ -211,7 +211,7 @@ int AtomType::getOffset() const
// returns a non-negative offset value if successful
if( offset == -1 )
{
- throw DataTypeIException("AtomType::getOffset",
+ throw DataTypeIException(inMemFunc("getOffset"),
"H5Tget_offset returns a negative offset value");
}
return( offset );
@@ -233,7 +233,7 @@ void AtomType::setOffset( size_t offset ) const
herr_t ret_value = H5Tset_offset( id, offset );
if( ret_value < 0 )
{
- throw DataTypeIException("AtomType::setOffset", "H5Tset_offset failed");
+ throw DataTypeIException(inMemFunc("setOffset"), "H5Tset_offset failed");
}
}
@@ -257,7 +257,7 @@ void AtomType::getPad( H5T_pad_t& lsb, H5T_pad_t& msb ) const
herr_t ret_value = H5Tget_pad( id, &lsb, &msb );
if( ret_value < 0 )
{
- throw DataTypeIException("AtomType::getPad", "H5Tget_pad failed");
+ throw DataTypeIException(inMemFunc("getPad"), "H5Tget_pad failed");
}
}
@@ -280,7 +280,7 @@ void AtomType::setPad( H5T_pad_t lsb, H5T_pad_t msb ) const
herr_t ret_value = H5Tset_pad( id, lsb, msb );
if( ret_value < 0 )
{
- throw DataTypeIException("AtomType::setPad", "H5Tset_pad failed");
+ throw DataTypeIException(inMemFunc("setPad"), "H5Tset_pad failed");
}
}