SourcePro® 2023.1 |
SourcePro® API Reference Guide |
Handle class for the Unicode character output stream implementation classes. More...
#include <rw/stream/RWUCharOutputStream.h>
Public Member Functions | |
RWUCharOutputStream (RWUCharOutputStreamImp *body) | |
RWUCharOutputStream (const RWUCharOutputStream &handle) | |
void | close () |
void | flush () |
bool | isBad () const |
bool | isFail () const |
bool | isGood () const |
RWUCharOutputStream & | operator<< (RWUCharOutputStream &(*pf)(RWUCharOutputStream &)) |
RWUCharOutputStream | operator<< (RWUCharOutputStream(*pf)(RWUCharOutputStream &)) |
RWUCharOutputStream & | operator<< (RWUChar unicodeValue) |
RWUCharOutputStream & | operator= (const RWUCharOutputStream &handle) |
void | write (RWUChar unicodeValue) |
void | write (const RWUChar *unicodeArray, RWSize numUChars) |
Public Member Functions inherited from RWHandleBase | |
bool | isValid (void) const |
bool | operator!= (const RWHandleBase &second) const |
bool | operator< (const RWHandleBase &second) const |
bool | operator== (const RWHandleBase &second) const |
Related Functions | |
(Note that these are not member functions.) | |
RWUCharOutputStream & | rwEndl (RWUCharOutputStream &stream) |
RWUCharOutputStream & | rwEnds (RWUCharOutputStream &stream) |
RWUCharOutputStream & | rwFlush (RWUCharOutputStream &stream) |
RWUCharOutputStream | rwGuard (RWUCharOutputStream &stream) |
Additional Inherited Members | |
Protected Member Functions inherited from RWHandleBase | |
RWHandleBase (void) | |
RWHandleBase (RWStaticCtor) | |
RWHandleBase (RWBodyBase *body) | |
RWHandleBase (const RWHandleBase &second) | |
~RWHandleBase (void) | |
RWBodyBase & | body (void) const |
RWHandleBase & | operator= (const RWHandleBase &second) |
Handle class for all the Unicode character output stream implementation classes. Implements the handle idiom from the handle-body pattern.
|
inlineexplicit |
Constructor.
|
inline |
Copy constructor.
handle | A UTF-16 character stream handle used to initialize the newly created handle. |
|
inline |
Closes the stream.
|
inline |
Flushes the stream.
|
inline |
Returns true
to indicate a loss of integrity resulting from an output operation. Throws no exceptions.
|
inline |
Returns true
to indicate that an output operation failed to generate the desired data. Throws no exceptions.
|
inline |
Returns true
to indicate a stream in a valid state. Throws no exceptions.
|
inline |
Inserter executing a manipulator function.
pf | The manipulator's function pointer. |
|
inline |
Inserter executing a manipulator function.
pf | The manipulator's function pointer. |
|
inline |
Writes a single UTF-16 character to the stream.
unicodeValue | The UTF-16 character to be written to the stream. |
|
inline |
Assignment operator. Throws no exceptions.
handle | A UTF-16 character stream handle used to initialize this handle. |
|
inline |
Writes a single UTF-16 character to the stream.
unicodeValue | The UTF-16 character to be written to the stream. |
Writes an array of UTF-16 characters to the stream.
unicodeArray | A pointer to the first element of the array. |
numUChars | The number of UTF-16 characters to be written to the stream. |
|
related |
Manipulator that writes an end-of-line UTF-16 control character to the stream.
stream | A UTF-16 character output stream. |
|
related |
Manipulator that writes an end-of-string UTF-16 character to the stream.
stream | A UTF-16 character output stream. |
|
related |
Manipulator that flushes a UTF-16 character output stream.
stream | The UTF-16 character stream to be flushed. |
|
related |
Manipulator that is used to guard a series of insertion operations.
stream | A UTF-16 character output stream. |
A rwGuard() manipulator creates a temporary guarded stream that locks the internal mutex of the preceding synchronized stream. In this way, any insertions following the manipulator within the statement will be atomic, that is, uninterrupted by any other threads. Note that if the preceding stream is not a synchronized stream, the rwGuard() manipulator has no effect.
Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |