Module: Advanced Tools Package: Streams
RWWCharArrayOutputStream RWWCharOutputStream RWHandleBase
#include <rw/stream/RWWCharArrayOutputStream.h>
Handle class for wide character output streams that support an extended interface that allows retrieval of their inserted data as a wide character array. Implements the handle idiom from the handle-body pattern.
RW_EXPLICIT RWWCharArrayOutputStream(RWWCharArrayOutputStreamImp* body);
Constructor.
Parameter List
body |
A pointer to an implementation class supporting the abstract interface RWWCharArrayOutputStreamImp. |
RWWCharArrayOutputStream(const RWWCharArrayOutputStream&
handle)
Copy constructor.
Parameter List
handle |
A wide character array stream handle used to initialize the newly created handle. |
RWWCharArrayOutputStream& operator=(const RWWCharArrayOutputStream& handle);
Assignment operator. Throws no exceptions.
Parameter List
handle |
A wide character array stream handle used to initialize this handle. |
void clear();
Resets the underlying buffer.
wchar_t* getWCharacterArray();
Returns a pointer to an array of wide characters containing the wide characters inserted into the stream since its creation. Users are responsible for freeing the memory associated with the array returned by this function using operator delete[].
RWSize getWCharacterArraySize() const;
Returns the size of the wide character array that would be returned by a call to function getWCharacterArray().
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, 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.