Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

ustl::ostringstream Class Reference
[TextStreams]

This stream writes textual data into a memory block. More...

#include <ustl.h>

Inheritance diagram for ustl::ostringstream:

ustl::ostream ustl::memlink ustl::cmemlink ustl::fdostringstream List of all members.

Public Member Functions

 ostringstream (void)
 Default constructor.
 ostringstream (void *p, size_type n)
 Creates a stream for writing into p of size n.
 ostringstream (string &dest)
 ostringstream (memlink &dest)
 Creates a stream for writing into fixed block dest.
void iwrite (uint8_t v)
 Writes a single character into the stream.
void iwrite (wchar_t v)
 Writes v into the stream as utf8.
void iwrite (int v)
void iwrite (unsigned int v)
void iwrite (long int v)
void iwrite (unsigned long int v)
void iwrite (float v)
void iwrite (double v)
void iwrite (bool v)
 Writes value v into the stream as text.
void iwrite (const char *s)
 Writes string s into the stream.
void iwrite (const string &v)
 Writes string v into the stream.
void iwrite (ios::fmtflags f)
 Sets the flag f in the stream.
int format (const char *fmt,...) __attribute__((__format__(__printf__
 Equivalent to a sprintf on the string.
void set_base (uint16_t b)
void set_width (uint16_t w)
void set_decimal_separator (char c)
void set_thousand_separator (char c)
void set_precision (uint16_t v)
void link (void *p, size_type n)
 Initializes both links to point to p, n.
void link (memlink &l)
 Links to l.
void link (string &l)
 Links to string l as resizable.
virtual void unlink (void)
 Unlinks the stream from its bound buffer.
void write (const void *buffer, size_type size)
 Writes the contents of buffer of size into the stream.
void write (const cmemlink &buf)
 Writes the contents of buf into the stream.
void write_strz (const char *)
 Writes str as a null-terminated string.

Protected Member Functions

virtual size_type overflow (size_type n=1)
 Attempts to create more output space. Returns remaining().
void write_buffer (const char *buf, size_type bufSize)
 Writes buf of size bufSize through the internal buffer.

Detailed Description

This stream writes textual data into a memory block.


Constructor & Destructor Documentation

ustl::ostringstream::ostringstream string dest  )  [explicit]
 

Creates a stream for writing into string dest.

dest may be resized by the stream if insufficient space is available.


The documentation for this class was generated from the following files:
Generated on Mon Jan 17 14:35:02 2005 for uSTL by 1.3.9 Doxygen Hosted on SourceForge.net