#include <xml2.h>
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. |
wxStringOutputStream::wxStringOutputStream | ( | ) | [inline] |
virtual wxStringOutputStream::~wxStringOutputStream | ( | ) | [inline, virtual] |
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.