Module: Advanced Tools Package: Streams
RWFilteredCharOutputStreamImp RWCharOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase
close() flush() getSinkStream() |
isBad() isFail() isGood() |
RWFilteredCharOutputStreamImp() write() ~RWFilteredCharOutputStreamImp() |
#include <rw/stream/RWFilteredCharOutputStreamImp.h>
Abstract base class for all the filtered narrow 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.
RWFilteredCharOutputStreamImp(RWCharOutputStream& sinkStream);
Used by derived classes to initialize the next processing stream.
Parameter List
sinkStream |
A handle to the next processing stream. |
virtual ~RWFilteredCharOutputStreamImp();
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(char charValue);
Forwards the writing of a single narrow character to the next processing stream.
Parameter List
charValue |
The narrow character to be written. |
virtual void write(const char* charArray, RWSize numChars);
Forwards the writing of an array of narrow characters to the next processing stream.
Parameter List
charArray |
A pointer to the first element of the array. |
numChars |
The number of narrow characters to be written to the stream. |
RWCharOutputStream& getSinkStream(); const RWCharOutputStream& 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.