diff options
Diffstat (limited to 'c++/src/H5Group.cpp')
-rw-r--r-- | c++/src/H5Group.cpp | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/c++/src/H5Group.cpp b/c++/src/H5Group.cpp index dcc6aca..3476f73 100644 --- a/c++/src/H5Group.cpp +++ b/c++/src/H5Group.cpp @@ -20,10 +20,8 @@ #endif #include "H5Include.h" -#include "H5RefCounter.h" #include "H5Exception.h" #include "H5IdComponent.h" -#include "H5Idtemplates.h" #include "H5PropList.h" #include "H5Object.h" #include "H5AbstractDs.h" @@ -194,23 +192,6 @@ void* Group::Reference(const char* name) const { return(p_reference(name, -1, H5R_OBJECT)); } -//-------------------------------------------------------------------------- -// Function: Group::p_close (private) -///\brief Closes this group. -///\exception H5::GroupIException -///\note -/// This function will be obsolete because its functionality -/// is recently handled by the C library layer. -// Programmer Binh-Minh Ribler - 2000 -//-------------------------------------------------------------------------- -void Group::p_close() const -{ - herr_t ret_value = H5Gclose( id ); - if( ret_value < 0 ) - { - throw GroupIException(0, "H5Gclose failed"); - } -} //-------------------------------------------------------------------------- // Function: Group::getObjType @@ -275,8 +256,9 @@ Group::~Group() { // The group id will be closed properly try { - resetIdComponent( this ); } - catch (Exception close_error) { // thrown by p_close + decRefCount(); + } + catch (Exception close_error) { cerr << "Group::~Group - " << close_error.getDetailMsg() << endl; } } |