KJB
|
RAII wrapper on FILE* used to read a file. More...
#include <l_stdio_wrap.h>
Public Member Functions | |
File_Ptr_Read (const std::string &pathname) | |
Public Member Functions inherited from kjb::File_Ptr | |
virtual int | close () |
close file before destruction; rarely needed; safe to do twice. More... | |
virtual | ~File_Ptr () |
dtor can simply call close() because closing a null ptr is OK. More... | |
operator FILE * () const | |
transparently use this object wherever a FILE* is used! More... | |
Additional Inherited Members | |
Protected Member Functions inherited from kjb::File_Ptr | |
void | throw_io_error (const std::string &pathname, const char *mode) |
this is what we do when things go terribly wrong More... | |
File_Ptr (const std::string &pathname, const char *mode) | |
ctor needs the pathname and a mode; mode is set by derived class More... | |
File_Ptr () | |
default ctor wraps a null pointer (to set up a later swap maybe) More... | |
void | swap (File_Ptr &that) |
swap the contents of two wrappers More... | |
RAII wrapper on FILE* used to read a file.
|
inline |