moab
|
Public Member Functions | |
CheckOpenReadHDF5Handles (mhdf_FileHandle file, int line) | |
~CheckOpenReadHDF5Handles () | |
Private Attributes | |
int | fileline |
mhdf_FileHandle | handle |
int | enter_count |
Definition at line 174 of file ReadHDF5.cpp.
moab::CheckOpenReadHDF5Handles::CheckOpenReadHDF5Handles | ( | mhdf_FileHandle | file, |
int | line | ||
) | [inline] |
Definition at line 180 of file ReadHDF5.cpp.
: fileline(line), handle(file), enter_count(mhdf_countOpenHandles(file)) {}
Definition at line 184 of file ReadHDF5.cpp.
{ 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::CheckOpenReadHDF5Handles::enter_count [private] |
Definition at line 178 of file ReadHDF5.cpp.
int moab::CheckOpenReadHDF5Handles::fileline [private] |
Definition at line 176 of file ReadHDF5.cpp.
Definition at line 177 of file ReadHDF5.cpp.