emilib
Public Member Functions | List of all members
fs::FILEWrapper Class Reference

Public Member Functions

 FILEWrapper (const std::string &path, const char *mode)
 throws on fail
 
void close ()
 
bool try_open (const std::string &path, const char *mode)
 Nice version.
 
bool error () const
 
bool end_of_file () const
 
void read_or_die (void *dest, size_t nbytes)
 
size_t try_read (void *dest, size_t nbytes)
 Returns the number of read bytes.
 
void write (const void *src, size_t nbytes)
 
void flush ()
 Write. Now.
 
void seek (int offset, int origin)
 Origin = SEEK_SET, SEEK_CUR or SEEK_END.
 
long tell () const
 
bool read_line (char *dest, int nbytes)
 Returns true on success.
 
FILE * handle ()
 

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