|
GClasses
|
Closes a file when this object goes out of scope.
#include <GHolders.h>
Public Member Functions | |
| FileHolder () | |
| FileHolder (FILE *pFile) | |
| ~FileHolder () | |
| Close the file. More... | |
| FILE * | get () |
| Returns a pointer to the FILE being held. More... | |
| FILE * | release () |
| Releases the FILE (it is now your job to close it) and sets this holder to hold NULL. More... | |
| void | reset (FILE *pFile=NULL) |
| Close the file and set this holder to hold NULL. More... | |
|
inline |
|
inline |
|
inline |
Close the file.
|
inline |
Returns a pointer to the FILE being held.
|
inline |
Releases the FILE (it is now your job to close it) and sets this holder to hold NULL.
| void GClasses::FileHolder::reset | ( | FILE * | pFile = NULL | ) |
Close the file and set this holder to hold NULL.