#include <stream.hpp>
This is used for serializing data in binary format.
Definition at line 86 of file stream.hpp.
Public Member Functions | |
virtual bool | at_end () const =0 |
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 &) |
virtual gsgl::index_t | read (unsigned char *, const gsgl::index_t num)=0 |
virtual gsgl::index_t | write (const unsigned char *, const gsgl::index_t num)=0 |
virtual | ~data_stream () |
Protected Member Functions | |
data_stream () |
data_stream | ( | ) | [protected] |
Definition at line 176 of file stream.cpp.
~data_stream | ( | ) | [virtual] |
Definition at line 181 of file stream.cpp.
virtual bool at_end | ( | ) | const [pure virtual] |
Implemented in fd_stream.
data_stream & operator<< | ( | const double & | n | ) |
data_stream & operator<< | ( | const float & | n | ) |
data_stream & operator<< | ( | const int & | n | ) |
data_stream & operator<< | ( | const unsigned char & | c | ) |
data_stream & operator>> | ( | double & | n | ) |
data_stream & operator>> | ( | float & | n | ) |
data_stream & operator>> | ( | int & | n | ) |
data_stream & operator>> | ( | unsigned char & | ch | ) |
virtual gsgl::index_t read | ( | unsigned char * | , | |
const gsgl::index_t | num | |||
) | [pure virtual] |
virtual gsgl::index_t write | ( | const unsigned char * | , | |
const gsgl::index_t | num | |||
) | [pure virtual] |