BLOCXX_NAMESPACE::OStringStreamBuf Class Reference

#include <StringStream.hpp>

Inheritance diagram for BLOCXX_NAMESPACE::OStringStreamBuf:

BLOCXX_NAMESPACE::BaseStreamBuffer List of all members.

Public Member Functions

 OStringStreamBuf (size_t size)
virtual ~OStringStreamBuf ()
String toString () const
String releaseString ()
size_t length () const
const char * c_str () const
void reset ()

Protected Member Functions

virtual int buffer_to_device (const char *c, int n)
 Writes the buffer to the "device".

Private Attributes

StringBuffer m_buf

Friends

class OStringStream

Detailed Description

Definition at line 100 of file StringStream.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::OStringStreamBuf::OStringStreamBuf size_t  size  ) 
 

Definition at line 45 of file StringStream.cpp.

BLOCXX_NAMESPACE::OStringStreamBuf::~OStringStreamBuf  )  [virtual]
 

Definition at line 50 of file StringStream.cpp.


Member Function Documentation

int BLOCXX_NAMESPACE::OStringStreamBuf::buffer_to_device const char *  c,
int  n
[protected, virtual]
 

Writes the buffer to the "device".

Parameters:
c A pointer to the start of the buffer
n the number of bytes to write
Returns:
-1 if error, 0 if the entire buffer was written.

Reimplemented from BLOCXX_NAMESPACE::BaseStreamBuffer.

Definition at line 79 of file StringStream.cpp.

References BLOCXX_NAMESPACE::StringBuffer::append(), and m_buf.

const char * BLOCXX_NAMESPACE::OStringStreamBuf::c_str  )  const
 

Definition at line 69 of file StringStream.cpp.

References BLOCXX_NAMESPACE::StringBuffer::c_str(), and m_buf.

Referenced by BLOCXX_NAMESPACE::OStringStream::c_str().

size_t BLOCXX_NAMESPACE::OStringStreamBuf::length  )  const
 

Definition at line 64 of file StringStream.cpp.

References BLOCXX_NAMESPACE::StringBuffer::length(), and m_buf.

Referenced by BLOCXX_NAMESPACE::OStringStream::length().

String BLOCXX_NAMESPACE::OStringStreamBuf::releaseString  ) 
 

Definition at line 59 of file StringStream.cpp.

References m_buf, and BLOCXX_NAMESPACE::StringBuffer::releaseString().

Referenced by BLOCXX_NAMESPACE::OStringStream::releaseString().

void BLOCXX_NAMESPACE::OStringStreamBuf::reset  ) 
 

Definition at line 74 of file StringStream.cpp.

References m_buf, and BLOCXX_NAMESPACE::StringBuffer::reset().

Referenced by BLOCXX_NAMESPACE::OStringStream::reset().

String BLOCXX_NAMESPACE::OStringStreamBuf::toString  )  const
 

Definition at line 54 of file StringStream.cpp.

References m_buf, and BLOCXX_NAMESPACE::StringBuffer::toString().

Referenced by BLOCXX_NAMESPACE::OStringStream::toString().


Friends And Related Function Documentation

friend class OStringStream [friend]
 

Definition at line 115 of file StringStream.hpp.


Member Data Documentation

StringBuffer BLOCXX_NAMESPACE::OStringStreamBuf::m_buf [private]
 

Definition at line 114 of file StringStream.hpp.

Referenced by buffer_to_device(), c_str(), length(), releaseString(), reset(), and toString().


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 15:39:11 2006 for blocxx by  doxygen 1.4.6