Module: Advanced Tools Package: Streams
RWCharArrayOutputStreamImp RWCharOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase
clear() getCharacterArray() |
getCharacterArraySize() getString() |
RWCharArrayOutputStreamImp() ~RWCharArrayOutputStreamImp() |
#include <rw/stream/RWCharArrayOutputStreamImp.h>
Abstract base class for narrow character output streams that support an extended interface that allows retrieval of their inserted data as a character array. Implements the body idiom from the handle-body pattern.
RWCharArrayOutputStreamImp();
Constructor.
virtual ~RWCharArrayOutputStreamImp();
Destructor.
virtual void clear() =0;
Resets the underlying buffer.
virtual char* getCharacterArray() =0;
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[].
virtual RWSize getCharacterArraySize() const =0;
Returns the size of the narrow character array that would be returned by a call to function getCharacterArray().
virtual RWCString getString() =0;
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.