SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Handle class for all narrow character output stream implementation classes. More...
#include <rw/stream/RWCharOutputStream.h>
Public Member Functions | |
RWCharOutputStream (const RWCharOutputStream &handle) | |
RWCharOutputStream (RWCharOutputStreamImp *ptr) | |
void | close () |
void | flush () |
bool | isBad () const |
bool | isFail () const |
bool | isGood () const |
RWCharOutputStream & | operator<< (char charValue) |
RWCharOutputStream & | operator<< (const RWCString &string) |
RWCharOutputStream & | operator<< (RWCharOutputStream &(*pf)(RWCharOutputStream &)) |
RWCharOutputStream | operator<< (RWCharOutputStream(*pf)(RWCharOutputStream &)) |
RWCharOutputStream & | operator= (const RWCharOutputStream &handle) |
void | write (char charValue) |
void | write (const char *charArray, RWSize numChars) |
void | write (const RWCString &string) |
Public Member Functions inherited from RWHandleBase | |
bool | isValid (void) const |
bool | operator!= (const RWHandleBase &second) const |
bool | operator== (const RWHandleBase &second) const |
Friends | |
class | RWTStreamGuardImp< RWCharOutputStream, RWFilteredCharOutputStreamImp > |
Related Symbols | |
(Note that these are not member symbols.) | |
RWCharOutputStream & | rwEndl (RWCharOutputStream &stream) |
RWCharOutputStream & | rwEnds (RWCharOutputStream &stream) |
RWCharOutputStream & | rwFlush (RWCharOutputStream &stream) |
RWCharOutputStream | rwGuard (RWCharOutputStream &stream) |
Additional Inherited Members | |
Protected Member Functions inherited from RWHandleBase | |
RWHandleBase (const RWHandleBase &second) | |
RWHandleBase (RWBodyBase *body) | |
RWHandleBase (RWStaticCtor) | |
RWHandleBase (void) | |
~RWHandleBase (void) | |
RWBodyBase & | body (void) const |
RWHandleBase & | operator= (const RWHandleBase &second) |
Handle class for all the narrow character output stream implementation classes. Implements the handle idiom from the handle-body pattern.
|
inlineexplicit |
Constructor.
|
inline |
Copy constructor.
handle | A narrow 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.
|
inline |
Returns true
to indicate that an output operation failed to generate the desired data.
|
inline |
Returns true
to indicate a stream in a valid state.
|
inline |
Writes a single narrow character to the stream.
charValue | The narrow character to be written to the stream. |
|
inline |
Writes a narrow string to the stream.
string | The narrow string object to be written to the stream. |
|
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 |
Assignment operator. Throws no exceptions.
handle | A narrow stream handle used to initialize this handle. |
|
inline |
Writes a single narrow character to the stream.
charValue | The narrow character to be written to the stream. |
|
inline |
Writes an array of narrow characters to the stream.
charArray | A pointer to the first element of the array. |
numChars | The number of narrow characters to be written to the stream. |
void RWCharOutputStream::write | ( | const RWCString & | string | ) |
Writes a single narrow string to the stream.
string | The narrow string object to be written to the stream. |
|
related |
Manipulator that writes an end of line control character to the stream.
stream | A narrow character output stream. |
|
related |
Manipulator that writes an end of string character to the stream.
stream | A narrow character output stream. |
|
related |
Manipulator that flushes a narrow character output stream.
stream | The narrow stream to be flushed. |
|
related |
Manipulator that is used to guard a series of insertion operations.
stream | A narrow 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 © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |