common_util
|
The file guard class to manage the FILE pointer automatically. file_guard object can close the FILE pointer automatically when his scope is exit. More...
#include <fileutil.h>
Public Member Functions | |
file_guard (FILE *file) | |
Construct a new file guard object. | |
~file_guard () | |
Destroy the file guard object. | |
FILE * | getfd () const |
Get the FILE pointer. | |
The file guard class to manage the FILE pointer automatically. file_guard object can close the FILE pointer automatically when his scope is exit.
|
explicit |
Construct a new file guard object.
file | the pointer of the FILE object |
FILE * cutl::file_guard::getfd | ( | ) | const |
Get the FILE pointer.