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