Definition at line 295 of file WriteHDF5.cpp.
◆ CheckOpenWriteHDF5Handles()
moab::CheckOpenWriteHDF5Handles::CheckOpenWriteHDF5Handles |
( |
mhdf_FileHandle |
file, |
|
|
int |
line |
|
) |
| |
|
inline |
Definition at line 302 of file WriteHDF5.cpp.
303 : fileline( line ), handle( file ), enter_count( mhdf_countOpenHandles( file ) )
304 {
305 }
◆ ~CheckOpenWriteHDF5Handles()
moab::CheckOpenWriteHDF5Handles::~CheckOpenWriteHDF5Handles |
( |
| ) |
|
|
inline |
Definition at line 307 of file WriteHDF5.cpp.
308 {
309 int new_count = mhdf_countOpenHandles( handle );
310 if( new_count != enter_count )
311 {
312 std::cout << "Leaked HDF5 object handle in function at " << __FILE__ << ":" << fileline << std::endl
313 << "Open at entrance: " << enter_count << std::endl
314 << "Open at exit: " << new_count << std::endl;
315 }
316 }
References enter_count, fileline, handle, and mhdf_countOpenHandles().
◆ enter_count
int moab::CheckOpenWriteHDF5Handles::enter_count |
|
private |
◆ fileline
int moab::CheckOpenWriteHDF5Handles::fileline |
|
private |
◆ handle
The documentation for this class was generated from the following file: