KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
kjb::File_Ptr_Read_Plus Struct Reference

RAII wrapper on FILE* opened with mode "r+" to read and write. More...

#include <l_stdio_wrap.h>

Inheritance diagram for kjb::File_Ptr_Read_Plus:
kjb::File_Ptr

Public Member Functions

 File_Ptr_Read_Plus (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...
 

Detailed Description

RAII wrapper on FILE* opened with mode "r+" to read and write.

Constructor & Destructor Documentation

kjb::File_Ptr_Read_Plus::File_Ptr_Read_Plus ( const std::string &  pathname)
inline

The documentation for this struct was generated from the following file: