#include <fstream.hpp>
Definition at line 106 of file fstream.hpp.
Public Member Functions | |
bool | at_end () const |
fd_stream (const gsgl::string &fname, gsgl::flags_t mode=FILE_OPEN_READ) | |
const gsgl::string & | get_fname () const |
data_stream & | operator<< (const double &) |
data_stream & | operator<< (const float &) |
data_stream & | operator<< (const int &) |
data_stream & | operator<< (const unsigned char &) |
data_stream & | operator>> (double &) |
data_stream & | operator>> (float &) |
data_stream & | operator>> (int &) |
data_stream & | operator>> (unsigned char &) |
gsgl::index_t | read (unsigned char *, const gsgl::index_t) |
gsgl::index_t | write (const unsigned char *, const gsgl::index_t) |
virtual | ~fd_stream () |
Protected Attributes | |
gsgl::string | fname |
void * | fp |
int | mode |
fd_stream | ( | const gsgl::string & | fname, | |
gsgl::flags_t | mode = FILE_OPEN_READ | |||
) |
Definition at line 232 of file fstream.cpp.
~fd_stream | ( | ) | [virtual] |
Definition at line 238 of file fstream.cpp.
bool at_end | ( | ) | const |
Reimplemented from file_stream.
Definition at line 243 of file fstream.cpp.
References file_stream::at_end().
const gsgl::string& get_fname | ( | ) | const [inline, inherited] |
data_stream & operator<< | ( | const double & | n | ) | [inherited] |
data_stream & operator<< | ( | const float & | n | ) | [inherited] |
data_stream & operator<< | ( | const int & | n | ) | [inherited] |
data_stream & operator<< | ( | const unsigned char & | c | ) | [inherited] |
data_stream & operator>> | ( | double & | n | ) | [inherited] |
data_stream & operator>> | ( | float & | n | ) | [inherited] |
data_stream & operator>> | ( | int & | n | ) | [inherited] |
data_stream & operator>> | ( | unsigned char & | ch | ) | [inherited] |
gsgl::index_t read | ( | unsigned char * | ptr, | |
const gsgl::index_t | num | |||
) | [virtual] |
gsgl::index_t write | ( | const unsigned char * | ptr, | |
const gsgl::index_t | num | |||
) | [virtual] |
Implements data_stream.
Definition at line 254 of file fstream.cpp.
References file_stream::fp.
Referenced by rgba_buffer::save().
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().
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().