#include <memory.h>
Public Types | |
typedef aegis_shared_ptr < output_memory > | mpointer |
Public Member Functions | |
virtual | ~output_memory () |
void | forward (output::pointer deeper) |
nstring | mkstr () |
Static Public Member Functions | |
static mpointer | create () |
Protected Member Functions | |
nstring | filename () const |
const char * | type_name () const |
long | ftell_inner () const |
void | write_inner (const void *data, size_t length) |
void | end_of_line_inner () |
Private Member Functions | |
output_memory () | |
output_memory (const output_memory &) | |
output_memory & | operator= (const output_memory &) |
Private Attributes | |
nstring_accumulator | buffer |
Definition at line 30 of file memory.h.
virtual output_memory::~output_memory | ( | ) | [virtual] |
The destructor.
output_memory::output_memory | ( | ) | [private] |
The default constructor. It is private on purpose, use the "create" class method instead.
output_memory::output_memory | ( | const output_memory & | ) | [private] |
The copy constructor. Do not use.
static mpointer output_memory::create | ( | ) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
void output_memory::forward | ( | output::pointer | deeper | ) |
The forward method is used to forward the data held by this object to a different output stream. It does not affect this output stream's data.
nstring output_memory::mkstr | ( | ) |
The mkstr method is used to turn the accumulated data into a string.
nstring output_memory::filename | ( | ) | const [protected, virtual] |
const char* output_memory::type_name | ( | ) | const [protected, virtual] |
long output_memory::ftell_inner | ( | ) | const [protected, virtual] |
The ftell_inner method is used to determine the current file position, without taking the buffering into account.
Implements output.
void output_memory::write_inner | ( | const void * | data, | |
size_t | length | |||
) | [protected, virtual] |
void output_memory::end_of_line_inner | ( | ) | [protected, virtual] |
output_memory& output_memory::operator= | ( | const output_memory & | ) | [private] |
The assignment operator. Do not use.
nstring_accumulator output_memory::buffer [private] |