#include <fstream.hpp>
Definition at line 83 of file fstream.hpp.
Public Member Functions | |
bool | at_end () const |
ft_stream (const gsgl::string &fname, gsgl::flags_t mode=FILE_OPEN_READ) | |
wchar_t | get () |
const gsgl::string & | get_fname () const |
text_stream & | operator<< (const char *) |
text_stream & | operator<< (const double &) |
text_stream & | operator<< (const float &) |
text_stream & | operator<< (const int &) |
text_stream & | operator<< (const wchar_t &) |
text_stream & | operator<< (const wchar_t *) |
text_stream & | operator>> (double &) |
text_stream & | operator>> (float &) |
text_stream & | operator>> (int &) |
text_stream & | operator>> (wchar_t &) |
wchar_t | peek () |
gsgl::index_t | read (wchar_t *, const gsgl::index_t) |
void | unget (wchar_t) |
gsgl::index_t | write (const wchar_t *, const gsgl::index_t) |
virtual | ~ft_stream () |
Static Public Attributes | |
static ft_stream | err |
static ft_stream | in |
static ft_stream | out |
Protected Attributes | |
gsgl::string | fname |
void * | fp |
int | mode |
Private Member Functions | |
ft_stream (void *fp, gsgl::flags_t mode) |
ft_stream | ( | void * | fp, | |
gsgl::flags_t | mode | |||
) | [private] |
Definition at line 135 of file fstream.cpp.
ft_stream | ( | const gsgl::string & | fname, | |
gsgl::flags_t | mode = FILE_OPEN_READ | |||
) |
Definition at line 141 of file fstream.cpp.
~ft_stream | ( | ) | [virtual] |
Definition at line 146 of file fstream.cpp.
bool at_end | ( | ) | const |
Reimplemented from file_stream.
Definition at line 189 of file fstream.cpp.
References file_stream::at_end().
Referenced by material_file::load_mtl_file(), mesh_file::load_obj_file(), and shader_base::read_file().
wchar_t get | ( | ) | [virtual] |
Implements text_stream.
Definition at line 164 of file fstream.cpp.
References gsgl::io::FILE_OPEN_READ, file_stream::fp, and file_stream::mode.
const gsgl::string& get_fname | ( | ) | const [inline, inherited] |
text_stream & operator<< | ( | const char * | str | ) | [inherited] |
Definition at line 102 of file stream.cpp.
text_stream & operator<< | ( | const double & | n | ) | [inherited] |
text_stream & operator<< | ( | const float & | n | ) | [inherited] |
text_stream & operator<< | ( | const int & | n | ) | [inherited] |
text_stream & operator<< | ( | const wchar_t & | ch | ) | [inherited] |
Definition at line 68 of file stream.cpp.
References text_stream::write().
text_stream & operator<< | ( | const wchar_t * | str | ) | [inherited] |
text_stream & operator>> | ( | double & | n | ) | [inherited] |
Definition at line 141 of file stream.cpp.
References text_stream::at_end(), and text_stream::read().
text_stream & operator>> | ( | float & | n | ) | [inherited] |
Definition at line 158 of file stream.cpp.
text_stream & operator>> | ( | int & | n | ) | [inherited] |
Definition at line 124 of file stream.cpp.
References text_stream::at_end(), and text_stream::read().
text_stream & operator>> | ( | wchar_t & | ch | ) | [inherited] |
Definition at line 117 of file stream.cpp.
References text_stream::read().
wchar_t peek | ( | ) | [virtual] |
Implements text_stream.
Definition at line 150 of file fstream.cpp.
References gsgl::io::FILE_OPEN_READ, file_stream::fname, file_stream::fp, file_stream::mode, and string::w_string().
gsgl::index_t read | ( | wchar_t * | buf, | |
const gsgl::index_t | num | |||
) | [virtual] |
Implements text_stream.
Definition at line 194 of file fstream.cpp.
References gsgl::io::FILE_OPEN_READ, file_stream::fp, and file_stream::mode.
void unget | ( | wchar_t | ch | ) | [virtual] |
Implements text_stream.
Definition at line 177 of file fstream.cpp.
References gsgl::io::FILE_OPEN_READ, file_stream::fp, and file_stream::mode.
gsgl::index_t write | ( | const wchar_t * | buf, | |
const gsgl::index_t | num | |||
) | [virtual] |
Implements text_stream.
Definition at line 211 of file fstream.cpp.
References gsgl::io::FILE_OPEN_WRITE, file_stream::fp, and file_stream::mode.
Definition at line 100 of file fstream.hpp.
gsgl::string fname [protected, inherited] |
void* fp [protected, inherited] |
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().
Definition at line 101 of file fstream.hpp.
int mode [protected, inherited] |
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().
Definition at line 99 of file fstream.hpp.
Referenced by debug_log_target::debug_log_target(), file_log_target::file_log_target(), logger::logger(), debug_log_target::~debug_log_target(), file_log_target::~file_log_target(), and logger::~logger().