StreamableString Class Reference

This class implements a quick and dirty way to create formatted strings -- it is simpler to use that strstream but may be slower if you are working on large streams. This kind of string is appropriate for quick formatting activities. More...

#include <streamable.h>

Inheritance diagram for StreamableString:
Inheritance graph
[legend]
Collaboration diagram for StreamableString:
Collaboration graph
[legend]

List of all members.

Public Types

typedef OstreamableBuffer
< StreamableString, char,
std::char_traits< char > > 
buf_type
typedef char char_type
typedef traits_type::int_type int_type
typedef traits_type::off_type off_type
typedef traits_type::pos_type pos_type
typedef std::char_traits< char > traits_type

Public Member Functions

StreamableStringoperator= (char const *rhs)
StreamableStringoperator= (std::string const &rhs)
void ostreamable_helper (char c)
 Helper that actually performs concatenations.
 StreamableString (char const *r)
 Create from C style string.
 StreamableString (std::string const &r)
 Create from std::string.
 StreamableString (StreamableString const &r)
 Copy constructor (only string content).
 StreamableString ()
 Default constructor.

Detailed Description

This class implements a quick and dirty way to create formatted strings -- it is simpler to use that strstream but may be slower if you are working on large streams. This kind of string is appropriate for quick formatting activities.

Definition at line 133 of file streamable.h.


Member Typedef Documentation

typedef OstreamableBuffer<StreamableString , char , std::char_traits<char > > buf_type [inherited]

Definition at line 102 of file streamable.h.

typedef char char_type [inherited]

Definition at line 96 of file streamable.h.

typedef traits_type::int_type int_type [inherited]

Definition at line 98 of file streamable.h.

typedef traits_type::off_type off_type [inherited]

Definition at line 99 of file streamable.h.

typedef traits_type::pos_type pos_type [inherited]

Definition at line 100 of file streamable.h.

typedef std::char_traits<char > traits_type [inherited]

Definition at line 97 of file streamable.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 153 of file streamable.h.

StreamableString ( StreamableString const &  r  ) 

Copy constructor (only string content).

Definition at line 158 of file streamable.h.

StreamableString ( std::string const &  r  ) 

Create from std::string.

Definition at line 165 of file streamable.h.

StreamableString ( char const *  r  ) 

Create from C style string.

Definition at line 172 of file streamable.h.


Member Function Documentation

StreamableString& operator= ( char const *  rhs  ) 

Definition at line 186 of file streamable.h.

StreamableString& operator= ( std::string const &  rhs  ) 

Definition at line 178 of file streamable.h.

void ostreamable_helper ( char  c  ) 

Helper that actually performs concatenations.

Definition at line 145 of file streamable.h.


The documentation for this class was generated from the following file:
Generated on Wed Feb 29 22:56:42 2012 for CXXUtilities by  doxygen 1.6.3