wxStringOutputStream Class Reference

#include <xml2.h>

List of all members.


Detailed Description

A simple wxOutputStream which outputs everything into a wxString.

The final output can be read using the GetStr() function. This class is typically used as an easy way to save a wxXml2Document or a wxXml2DTD into a wxString.

VERY IMPORTANT: the Write() method of this output stream assumes the given data to be a valid UTF8-encoded string. No checks will be done to ensure this.


Public Member Functions

 wxStringOutputStream ()
virtual ~wxStringOutputStream ()
wxString GetStr () const
 Returns the internal string used to store the result.

Protected Member Functions

virtual size_t OnSysWrite (const void *buffer, size_t bufsize)
 Our overridden function.


Constructor & Destructor Documentation

wxStringOutputStream::wxStringOutputStream (  )  [inline]

virtual wxStringOutputStream::~wxStringOutputStream (  )  [inline, virtual]


Member Function Documentation

wxString wxStringOutputStream::GetStr (  )  const [inline]

Returns the internal string used to store the result.

size_t wxStringOutputStream::OnSysWrite ( const void *  buffer,
size_t  bufsize 
) [protected, virtual]

Our overridden function.

It writes the given UTF8 buffer into our internal wxString.


The documentation for this class was generated from the following files:
Generated on Thu Sep 28 14:58:01 2006 for wxXml2 by  doxygen 1.4.7