Module: Advanced Tools Package: Streams
RWFilteredWCharOutputStreamImp RWWCharOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase
close() flush() getSinkStream() |
isBad() isFail() isGood() |
RWFilteredWCharOutputStreamImp() write() ~RWFilteredWCharOutputStreamImp() |
#include <rw/stream/RWFilteredWCharOutputStreamImp.h>
Abstract base class for all the filtered wide character output stream implementation classes. A filtered output stream is a stream that process elements and then forwards the result to another stream for further processing. Implements the body idiom from the handle-body pattern.
RWFilteredWCharOutputStreamImp(RWWCharOutputStream&
sinkStream);
Used by derived classes to initialize the next processing stream.
Parameter List
sinkStream |
A handle to the next processing stream. |
virtual ~RWFilteredWCharOutputStreamImp();
Destructor.
virtual void close();
Forwards the close() request to the next processing stream.
virtual void flush();
Forwards the flush() request to the next processing stream.
virtual bool isBad() const;
Forwards the isBad() request to the next processing stream. Throws no exceptions.
virtual bool isFail() const;
Forwards the isFail() request to the next processing stream. Throws no exceptions.
virtual bool isGood() const;
Forwards the isGood() request to the next processing stream. Throws no exceptions.
virtual void write(const wchar_t* wcharArray, RWSize numWChars);
Forwards the writing of an array of wide characters to the next processing stream.
Parameter List
wcharArray |
A pointer to the first element of the array. |
numWChars |
The number of wide characters to be written to the stream. |
virtual void write(wchar_t wcharValue);
Forwards the writing of a single wide character to the next processing stream.
Parameter List
wcharValue |
The wide character to be written. |
RWWCharOutputStream& getSinkStream(); const RWWCharOutputStream& getSinkStream() const;
These functions return a handle to the next processing stream. They throw no exceptions.
© 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.