Module: Advanced Tools Package: Streams
RWWCharOutputStream RWHandleBase
#include <rw/stream/RWWCharOutputStream.h>
Handle class for all the wide character output stream implementation classes. Implements the handle idiom from the handle-body pattern.
RW_EXPLICIT RWWCharOutputStream(RWWCharOutputStreamImp* body);
Constructor.
RWWCharOutputStream(const RWWCharOutputStream& handle);
Copy constructor.
Parameter List
handle |
A wide character stream handle used to initialize the newly created handle. |
RWWCharOutputStream operator<<(RWWCharOutputStream (*pf)(RWWCharOutputStream&));
Inserter executing a manipulator function.
Parameter List
pf |
The manipulator's function pointer. |
RWWCharOutputStream& operator<<(RWWCharOutputStream& (*pf)(RWWCharOutputStream&));
Inserter executing a manipulator function.
Parameter List
pf |
The manipulator's function pointer. |
RWWCharOutputStream& operator<<(wchar_t wcharValue);
Writes a single wide character to the stream.
Parameter List
wcharValue |
The wide character to be written to the stream. |
RWWCharOutputStream& operator=(const RWWCharOutputStream& handle);
Assignment operator. Throws no exceptions.
Parameter List
handle |
A wide character stream handle used to initialize this handle. |
void close();
Closes the stream.
void flush();
Flushes the stream.
bool isBad() const;
Returns true to indicate a loss of integrity resulting from an output operation. Throws no exceptions.
bool isFail() const;
Returns true to indicate that an output operation failed to generate the desired data. Throws no exceptions.
bool isGood() const;
Returns true to indicate a stream in a valid state. Throws no exceptions.
void write(const wchar_t* wcharArray, RWSize numWChars);
Writes an array of wide characters to the 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. |
void write(wchar_t wcharValue);
Writes a single wide character to the stream.
Parameter List
wcharValue |
The wide character to be written to the stream. |
RWWCharOutputStream& rwEndl(RWWCharOutputStream& stream);
Manipulator that writes an end-of-line control character to the stream.
Parameter List
stream |
A wide character output stream. |
RWWCharOutputStream& rwEnds(RWWCharOutputStream& stream);
Manipulator that writes an end-of-string character to the stream.
Parameter List
stream |
A wide character output stream. |
RWWCharOutputStream& rwFlush(RWWCharOutputStream& stream);
Manipulator that flushes a wide character output stream.
Parameter List
stream |
The wide character stream to be flushed. |
© 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.