MOAB: Mesh Oriented datABase  (version 5.4.1)
moab::CheckOpenReadHDF5Handles Class Reference

Public Member Functions

 CheckOpenReadHDF5Handles (mhdf_FileHandle file, int line)
 ~CheckOpenReadHDF5Handles ()

Private Attributes

int fileline
mhdf_FileHandle handle
int enter_count

Detailed Description

Definition at line 154 of file ReadHDF5.cpp.


Constructor & Destructor Documentation

Definition at line 161 of file ReadHDF5.cpp.

        : fileline( line ), handle( file ), enter_count( mhdf_countOpenHandles( file ) )
    {
    }

Definition at line 165 of file ReadHDF5.cpp.

References enter_count, fileline, handle, and mhdf_countOpenHandles().

    {
        int new_count = mhdf_countOpenHandles( handle );
        if( new_count != enter_count )
        {
            std::cout << "Leaked HDF5 object handle in function at " << __FILE__ << ":" << fileline << std::endl
                      << "Open at entrance: " << enter_count << std::endl
                      << "Open at exit:     " << new_count << std::endl;
        }
    }

Member Data Documentation

Definition at line 158 of file ReadHDF5.cpp.

Referenced by ~CheckOpenReadHDF5Handles().

Definition at line 156 of file ReadHDF5.cpp.

Referenced by ~CheckOpenReadHDF5Handles().

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines