Module: Advanced Tools Package: Streams
RWCharArrayOutputStream RWCharOutputStream RWHandleBase
clear() getCharacterArray() |
getCharacterArraySize() getString() |
operator=() RWCharArrayOutputStream() |
#include <rw/stream/RWCharArrayOutputStream.h>
Handle class for narrow character output streams that support an extended interface that allows retrieval of their inserted data as a narrow character array. Implements the handle idiom from the handle-body pattern.
RW_EXPLICIT RWCharArrayOutputStream(RWCharArrayOutputStreamImp* body);
Constructor.
Parameter List
body |
A pointer to an implementation class supporting the abstract interface RWCharArrayOutputStreamImp. |
RWCharArrayOutputStream(const RWCharArrayOutputStream&
handle);
Copy constructor.
Parameter List
handle |
A narrow character array stream handle used to initialize the newly created handle. |
RWCharArrayOutputStream& operator=(const RWCharArrayOutputStream& handle);
Assignment operator. Throws no exceptions.
Parameter List
handle |
A narrow character array stream handle used to initialize this handle. |
void clear();
Resets the underlying buffer.
char* getCharacterArray();
Returns a pointer to an array of narrow characters containing the 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 getCharacterArraySize() const;
Returns the size of the narrow character array that would be returned by a call to function getCharacterArray().
RWCString getString();
Returns a narrow character string object containing the characters inserted into the stream since its creation.
© 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.