rwsf::XmlStringWriter rwsf::XmlWriter
#include <rwsf/core/XmlStringWriter.h>
Class rwsf::XmlStringWriter implements an rwsf::XmlWriter that uses an std::string as a data sink. This class provides a string buffer based implementation of the rwsf::XmlWriter interface to aid in writing XML content to a string.
The class inherits most functions from rwsf::XmlWriter.
XmlStringWriter();
Default constructor. Constructs an rwsf::XmlStringWriter that contains an empty std::string.
XmlStringWriter(size_t s = RWSF_STR_WRITER_BUFFER_SIZE);
Constructs an rwsf::XmlStringWriter with an initial buffer size of 4096.
virtual ~XmlStringWriter();
Destructor.
void flush();
Ensures any buffered data has been written.
size_t getBufferLength () const;
Returns the length of the buffer.
size_t getLength() const;
Returns the length of the std::string this object contains.
std::string getString() const;
Returns the std::string this object contains.
void resize(size_t);
Resizes this rwsf::XmlStringWriter object, allowing for the resize of the buffer.
std::string
©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks and HydraSDO is a trademark of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.