|
MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Public Member Functions | |
| CheckOpenWriteHDF5Handles (mhdf_FileHandle file, int line) | |
| ~CheckOpenWriteHDF5Handles () | |
Private Attributes | |
| int | fileline |
| mhdf_FileHandle | handle |
| int | enter_count |
Definition at line 295 of file WriteHDF5.cpp.
| moab::CheckOpenWriteHDF5Handles::CheckOpenWriteHDF5Handles | ( | mhdf_FileHandle | file, |
| int | line | ||
| ) | [inline] |
Definition at line 302 of file WriteHDF5.cpp.
: fileline( line ), handle( file ), enter_count( mhdf_countOpenHandles( file ) ) { }
Definition at line 307 of file WriteHDF5.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;
}
}
int moab::CheckOpenWriteHDF5Handles::enter_count [private] |
Definition at line 299 of file WriteHDF5.cpp.
Referenced by ~CheckOpenWriteHDF5Handles().
int moab::CheckOpenWriteHDF5Handles::fileline [private] |
Definition at line 297 of file WriteHDF5.cpp.
Referenced by ~CheckOpenWriteHDF5Handles().
Definition at line 298 of file WriteHDF5.cpp.
Referenced by ~CheckOpenWriteHDF5Handles().