#include <fstream.hpp>
Definition at line 61 of file fstream.hpp.
Public Member Functions | |
file_stream (const gsgl::string &fname, gsgl::flags_t mode=FILE_OPEN_READ) | |
const gsgl::string & | get_fname () const |
virtual | ~file_stream () |
Protected Member Functions | |
bool | at_end () const |
file_stream (void *fp, gsgl::flags_t mode) | |
Protected Attributes | |
gsgl::string | fname |
void * | fp |
int | mode |
file_stream | ( | void * | fp, | |
gsgl::flags_t | mode | |||
) | [protected] |
Definition at line 56 of file fstream.cpp.
file_stream | ( | const gsgl::string & | fname, | |
gsgl::flags_t | mode = FILE_OPEN_READ | |||
) |
Definition at line 62 of file fstream.cpp.
References string::append(), string::c_string(), gsgl::io::FILE_OPEN_APPEND, gsgl::io::FILE_OPEN_BINARY, gsgl::io::FILE_OPEN_READ, gsgl::io::FILE_OPEN_TEXT, gsgl::io::FILE_OPEN_WRITE, file_stream::fp, and string::w_string().
~file_stream | ( | ) | [virtual] |
bool at_end | ( | ) | const [protected] |
Reimplemented in ft_stream, and fd_stream.
Definition at line 121 of file fstream.cpp.
References file_stream::fp.
Referenced by fd_stream::at_end(), and ft_stream::at_end().
const gsgl::string& get_fname | ( | ) | const [inline] |
gsgl::string fname [protected] |
void* fp [protected] |
Definition at line 67 of file fstream.hpp.
Referenced by file_stream::at_end(), file_stream::file_stream(), ft_stream::get(), ft_stream::peek(), fd_stream::read(), ft_stream::read(), ft_stream::unget(), fd_stream::write(), ft_stream::write(), and file_stream::~file_stream().
int mode [protected] |
Definition at line 68 of file fstream.hpp.
Referenced by ft_stream::get(), ft_stream::peek(), ft_stream::read(), ft_stream::unget(), and ft_stream::write().