SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Handle class for all the data output stream implementation classes. More...
#include <rw/stream/RWDataOutputStream.h>
Public Member Functions | |
RWDataOutputStream (const RWDataOutputStream &handle) | |
RWDataOutputStream (RWDataOutputStreamImp *ptr) | |
void | close () |
void | flush () |
bool | isBad () const |
bool | isFail () const |
bool | isGood () const |
RWDataOutputStream & | operator<< (bool value) |
RWDataOutputStream & | operator<< (char value) |
RWDataOutputStream & | operator<< (double value) |
RWDataOutputStream & | operator<< (float value) |
RWDataOutputStream & | operator<< (int value) |
RWDataOutputStream & | operator<< (long double value) |
RWDataOutputStream & | operator<< (long long value) |
RWDataOutputStream & | operator<< (long value) |
RWDataOutputStream & | operator<< (RWDataOutputStream &(*pf)(RWDataOutputStream &)) |
RWDataOutputStream | operator<< (RWDataOutputStream(*pf)(RWDataOutputStream &)) |
RWDataOutputStream & | operator<< (short value) |
RWDataOutputStream & | operator<< (signed char value) |
RWDataOutputStream & | operator<< (unsigned char value) |
RWDataOutputStream & | operator<< (unsigned int value) |
RWDataOutputStream & | operator<< (unsigned long value) |
RWDataOutputStream & | operator<< (unsigned short value) |
RWDataOutputStream & | operator<< (wchar_t value) |
RWDataOutputStream & | operator= (const RWDataOutputStream &handle) |
void | putBool (bool value) |
void | putBools (const bool *arrayPt, RWSize count) |
void | putChar (char value) |
virtual void | putCharacter (char value) |
void | putChars (const char *arrayPt, RWSize count) |
void | putDouble (double value) |
void | putDoubles (const double *arrayPt, RWSize count) |
void | putFloat (float value) |
void | putFloats (const float *arrayPt, RWSize count) |
void | putInt (int value) |
void | putInts (const int *arrayPt, RWSize count) |
void | putLong (long value) |
void | putLongDouble (long double value) |
void | putLongDoubles (const long double *arrayPt, RWSize count) |
void | putLongLong (long long value) |
void | putLongLongs (const long long *arrayPt, RWSize count) |
void | putLongs (const long *arrayPt, RWSize count) |
void | putShort (short value) |
void | putShorts (const short *arrayPt, RWSize count) |
void | putSignedChar (signed char value) |
void | putSignedChars (const signed char *arrayPt, RWSize count) |
virtual void | putSizeT (size_t value) |
void | putString (const char *string, RWSize count) |
virtual void | putUCharacter (RWUChar value) |
void | putUnsignedChar (unsigned char value) |
void | putUnsignedChars (const unsigned char *arrayPt, RWSize count) |
void | putUnsignedInt (unsigned int value) |
void | putUnsignedInts (const unsigned int *arrayPt, RWSize count) |
void | putUnsignedLong (unsigned long value) |
void | putUnsignedLongs (const unsigned long *arrayPt, RWSize count) |
void | putUnsignedShort (unsigned short value) |
void | putUnsignedShorts (const unsigned short *arrayPt, RWSize count) |
void | putUString (const RWUChar *ustring, RWSize count) |
void | putWchar_t (wchar_t value) |
void | putWchar_ts (const wchar_t *arrayPt, RWSize count) |
virtual void | putWCharacter (wchar_t value) |
void | putWString (const wchar_t *wstring, RWSize count) |
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< RWDataOutputStream, RWFilteredDataOutputStreamImp > |
Related Symbols | |
(Note that these are not member symbols.) | |
RWDataOutputStream & | rwEndl (RWDataOutputStream &stream) |
RWDataOutputStream & | rwEnds (RWDataOutputStream &stream) |
RWDataOutputStream & | rwFlush (RWDataOutputStream &stream) |
RWDataOutputStream | rwGuard (RWDataOutputStream &stream) |
RWDataOutputStream & | rwWEndl (RWDataOutputStream &stream) |
RWDataOutputStream & | rwWEnds (RWDataOutputStream &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 data output stream implementation classes. Implements the handle idiom from the handle-body pattern.
|
inlineexplicit |
Constructor.
|
inline |
Copy constructor. Throws no exceptions.
handle | A data stream handle used to initialize this 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 |
Writes a bool
value to the stream.
value | The bool value to be written to the stream. |
|
inline |
Writes a char
value to the stream.
value | The char value to be written to the stream. |
|
inline |
Writes a double
value to the stream.
value | The double value to be written to the stream. |
|
inline |
Writes a float
value to the stream.
value | The float value to be written to the stream. |
|
inline |
Writes an int
value to the stream.
value | The int value to be written to the stream. |
|
inline |
Writes a long double
value to the stream.
value | The long double value to be written to the stream. |
|
inline |
Writes a long long
value to the stream.
value | The long long value to be written to the stream. |
|
inline |
Writes a long
value to the stream.
value | The long value to be written to the stream. |
|
inline |
Insertor executing a manipulator function. Throws no exceptions.
pf | The manipulator's function pointer. |
|
inline |
Insertor executing a manipulator function. Throws no exceptions.
pf | The manipulator's function pointer. |
|
inline |
Writes a short
value to the stream.
value | The short to be written to the stream. |
|
inline |
Writes a signed char
value to the stream.
value | The signed char value to be written to the stream. |
|
inline |
Writes an unsigned char
value to the stream.
value | The unsigned char value to be written to the stream. |
|
inline |
Writes an unsigned int
value to the stream.
value | The unsigned int value to be written to the stream. |
|
inline |
Writes an unsigned long
value to the stream.
value | The unsigned long value to be written to the stream. |
|
inline |
Writes an unsigned short
value to the stream.
value | The unsigned short to be written to the stream. |
|
inline |
Writes a wchar_t
value to the stream.
value | The wchar_t value to be written to the stream. |
|
inline |
Assignment operator. Throws no exceptions.
handle | A data stream handle used to initialize this handle. |
|
inline |
Writes a bool
value to the stream.
value | The bool value to be written to the stream. |
|
inline |
Writes an array of bool
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inline |
Writes a char
value to the stream.
value | The char value to be written to the stream. |
|
inlinevirtual |
Writes a narrow character to the stream.
value | The narrow character to be written to the stream. |
|
inline |
Writes an array of char
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inline |
Writes a double
value to the stream.
value | The double value to be written to the stream. |
|
inline |
Writes an array of double
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inline |
Writes a float
value to the stream.
value | The float value to be written to the stream. |
|
inline |
Writes an array of float
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inline |
Writes an int
value to the stream.
value | The int value to be written to the stream. |
|
inline |
Writes an array of int
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inline |
Writes a long
value to the stream.
value | The long value to be written to the stream. |
|
inline |
Writes a long double
value to the stream.
value | The long double value to be written to the stream. |
|
inline |
Writes an array of long
double
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inline |
Writes a long long
value to the stream.
value | The long long value to be written to the stream. |
|
inline |
Writes an array of long long
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inline |
Writes an array of long
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inline |
Writes a short
value to the stream.
value | The short value to be written to the stream. |
|
inline |
Writes an array of short
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inline |
Writes a signed char
value to the stream.
value | The signed char value to be written to the stream. |
|
inline |
Writes an array of signed
char
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inlinevirtual |
Writes a size_t
value to the stream.
value | The size_t value to be written to the stream. |
|
inline |
Writes a narrow character string, including embedded nulls, starting at string to the stream.
string | A pointer to the string's first narrow character. |
count | The number of narrow characters to be written to the stream. |
|
inlinevirtual |
Writes a UTF-16 character to the stream.
value | The UTF-16 character to be written to the stream. |
|
inline |
Writes an unsigned char
value to the stream.
value | The unsigned char value to be written to the stream. |
|
inline |
Writes an array of unsigned
char
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inline |
Writes an unsigned int
value to the stream.
value | The unsigned int value to be written to the stream. |
|
inline |
Writes an array of unsigned
int
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inline |
Writes an unsigned long
value to the stream.
value | The unsigned long value to be written to the stream. |
|
inline |
Writes an array of unsigned
long
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inline |
Writes an unsigned short
value to the stream.
value | The unsigned short value to be written to the stream. |
|
inline |
Writes an array of unsigned
short
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Writes a UTF-16 character string, including embedded nulls, starting at ustring to the stream.
ustring | A pointer to the string's first UTF-16 character. |
count | The number of UTF-16 characters to be written to the stream. |
|
inline |
Writes a wchar_t
value to the stream.
value | The wchar_t value to be written to the stream. |
|
inline |
Writes an array of wchar_t
value(s) to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
|
inlinevirtual |
Writes a wide character to the stream.
value | The wide character to be written to the stream. |
|
inline |
Writes a wide character string, including embedded nulls, starting at wstring to the stream.
wstring | A pointer to the string's first narrow character. |
count | The number of wide characters to be written to the stream. |
|
related |
Manipulator that writes a narrow end-of-line control character to the stream.
stream | The data stream to which the manipulator applies. |
|
related |
Manipulator that writes a narrow end of string character to the stream. to the stream.
stream | The data stream to which the manipulator applies. |
|
related |
Manipulator that flushes a data output stream.
stream | The data 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.
|
related |
Manipulator that writes a wide end-of-line control character to the stream.
stream | The data stream to which the manipulator applies. |
|
related |
Manipulator that writes a wide end of string character to the stream. to the stream.
stream | The data stream to which the manipulator applies. |
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |