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 (int32_t v)
 Writes signed value sv into the stream.
void iwrite (uint32_t v)
 Writes number v into the stream as text.
void iwrite (wchar_t v)
 Writes v into the stream as utf8.
void iwrite (double v)
 Writes number iv into the stream as text.
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)
 Sets the numeric base for writing numbers.
void set_width (uint16_t w)
 Sets the numeric base for writing numbers.
void set_decimal_separator (char s)
 Sets the decimal separator in numbers. Period by default.
void set_thousand_separator (char s)
 Sets the thousand separator in numbers. Comma by default.
void set_precision (uint16_t precision)
 Sets the number of digits after the decimal separator.
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 *str)
 Disallows writing nul characters into the stream.

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 Wed Jul 28 15:58:44 2004 for uSTL by 1.3.8 Doxygen Hosted on SourceForge.net