SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Handle class for all binary output stream implementation classes. More...
#include <rw/stream/RWByteOutputStream.h>
Public Member Functions | |
RWByteOutputStream (const RWByteOutputStream &handle) | |
RWByteOutputStream (RWByteOutputStreamImp *ptr) | |
void | close () |
void | flush () |
bool | isBad () const |
bool | isFail () const |
bool | isGood () const |
RWByteOutputStream & | operator<< (RWByte byteValue) |
RWByteOutputStream & | operator<< (RWByteOutputStream &(*pf)(RWByteOutputStream &)) |
RWByteOutputStream | operator<< (RWByteOutputStream(*pf)(RWByteOutputStream &)) |
RWByteOutputStream & | operator= (const RWByteOutputStream &handle) |
void | write (const RWByte *byteArray, RWSize numBytes) |
void | write (RWByte byteValue) |
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< RWByteOutputStream, RWFilteredByteOutputStreamImp > |
Related Symbols | |
(Note that these are not member symbols.) | |
RWByteOutputStream & | rwFlush (RWByteOutputStream &stream) |
RWByteOutputStream | rwGuard (RWByteOutputStream &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 binary output stream implementation classes. Implements the handle idiom from the handle-body pattern.
|
inlineexplicit |
Constructor.
|
inline |
Copy constructor.
handle | A binary stream handle used to initialize the newly created handle. |
Exception none.
|
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 byte to the stream.
byteValue | The byte 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.
handle | A binary stream handle used to initialize this handle. |
Exception none.
Writes an array of bytes to the stream.
byteArray | A pointer to the first element of the array. |
numBytes | The number of bytes to be written to the stream. |
|
inline |
Writes a single byte to the stream.
byteValue | The byte to be written to the stream. |
|
related |
Manipulator that flushes a binary output stream.
stream | The binary stream to be flushed. |
|
related |
Manipulator that is used to guard a series of insertion operations.
stream | A binary 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. |