OW_NAMESPACE::OStringStreamBuf Class Reference

#include <OW_StringStream.hpp>

Inheritance diagram for OW_NAMESPACE::OStringStreamBuf:

Inheritance graph
Collaboration diagram for OW_NAMESPACE::OStringStreamBuf:

Collaboration graph
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


class OStringStream

Detailed Description

Definition at line 98 of file OW_StringStream.hpp.

Constructor & Destructor Documentation

OW_NAMESPACE::OStringStreamBuf::OStringStreamBuf size_t  size  ) 

Definition at line 43 of file OW_StringStream.cpp.

OW_NAMESPACE::OStringStreamBuf::~OStringStreamBuf  )  [virtual]

Definition at line 48 of file OW_StringStream.cpp.

Member Function Documentation

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

Writes the buffer to the "device".

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

Reimplemented from OW_NAMESPACE::BaseStreamBuffer.

Definition at line 77 of file OW_StringStream.cpp.

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

const char * OW_NAMESPACE::OStringStreamBuf::c_str  )  const

Definition at line 67 of file OW_StringStream.cpp.

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

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

size_t OW_NAMESPACE::OStringStreamBuf::length  )  const

Definition at line 62 of file OW_StringStream.cpp.

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

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

String OW_NAMESPACE::OStringStreamBuf::releaseString  ) 

Definition at line 57 of file OW_StringStream.cpp.

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

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

void OW_NAMESPACE::OStringStreamBuf::reset  ) 

Definition at line 72 of file OW_StringStream.cpp.

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

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

String OW_NAMESPACE::OStringStreamBuf::toString  )  const

Definition at line 52 of file OW_StringStream.cpp.

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

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

Friends And Related Function Documentation

friend class OStringStream [friend]

Definition at line 113 of file OW_StringStream.hpp.

Member Data Documentation

StringBuffer OW_NAMESPACE::OStringStreamBuf::m_buf [private]

Definition at line 112 of file OW_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 Thu Feb 9 09:14:35 2006 for openwbem by  doxygen 1.4.6