Automatically close open files, datasets, etc. More...

Public Member Functions | |
| AutoCloser (T1 id, T2(*f)(T1)) | |
| ~AutoCloser () | |
| AutoCloser (int fn, const std::string &eh) | |
| ~AutoCloser () | |
| AutoCloser (int fn) | |
| ~AutoCloser () | |
Private Attributes | |
| T1 | m_id |
| T2(* | m_close )(T1) |
| int | m_fn |
| const std::string & | errorhandle |
Automatically close open files, datasets, etc.
Automatically close a CGNS file.
| id | The file id. |
| f | The function used to close the file. |
This class closes a CGNS file automatically when it goes out of scope.
|
inline |
|
inline |
Definition at line 183 of file Rocin.C.
References AutoCloser< T1, T2 >::m_close, and AutoCloser< T1, T2 >::m_id.
|
inline |
Definition at line 125 of file Rocout_cgns.C.
|
inline |
|
inline |
Definition at line 57 of file ghostbuster.C.
|
inline |
Definition at line 59 of file ghostbuster.C.
|
private |
Definition at line 131 of file Rocout_cgns.C.
|
private |
Definition at line 186 of file Rocin.C.
Referenced by AutoCloser< T1, T2 >::~AutoCloser().
|
private |
Definition at line 130 of file Rocout_cgns.C.
Referenced by AutoCloser< T1, T2 >::~AutoCloser().
|
private |
Definition at line 185 of file Rocin.C.
Referenced by AutoCloser< T1, T2 >::~AutoCloser().