SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Adapter class that allows virtual output stream class RWvostream to be used where data output stream class RWDataOutputStream is required. More...
#include <rw/serial/RWDataToVirtualOutputStreamImp.h>
Public Member Functions | |
virtual void | flush () |
virtual bool | isBad () const |
virtual bool | isFail () const |
virtual bool | isGood () const |
virtual void | putBool (bool value) |
virtual void | putBools (const bool *arrayPt, RWSize count) |
virtual void | putChar (char value) |
virtual void | putCharacter (char value) |
virtual void | putChars (const char *arrayPt, RWSize count) |
virtual void | putDouble (double value) |
virtual void | putDoubles (const double *arrayPt, RWSize count) |
virtual void | putFloat (float value) |
virtual void | putFloats (const float *arrayPt, RWSize count) |
virtual void | putInt (int value) |
virtual void | putInts (const int *arrayPt, RWSize count) |
virtual void | putLong (long value) |
virtual void | putLongDouble (long double value) |
virtual void | putLongDoubles (const long double *arrayPt, RWSize count) |
virtual void | putLongLong (long long value) |
virtual void | putLongLongs (const long long *arrayPt, RWSize count) |
virtual void | putLongs (const long *arrayPt, RWSize count) |
virtual void | putShort (short value) |
virtual void | putShorts (const short *arrayPt, RWSize count) |
virtual void | putSignedChar (signed char value) |
virtual void | putSignedChars (const signed char *arrayPt, RWSize count) |
virtual void | putString (const char *arrayPt, RWSize count) |
virtual void | putUCharacter (RWUChar value) |
virtual void | putUnsignedChar (unsigned char value) |
virtual void | putUnsignedChars (const unsigned char *arrayPt, RWSize count) |
virtual void | putUnsignedInt (unsigned int value) |
virtual void | putUnsignedInts (const unsigned int *arrayPt, RWSize count) |
virtual void | putUnsignedLong (unsigned long value) |
virtual void | putUnsignedLongs (const unsigned long *arrayPt, RWSize count) |
virtual void | putUnsignedShort (unsigned short value) |
virtual void | putUnsignedShorts (const unsigned short *arrayPt, RWSize count) |
virtual void | putUString (const unsigned short *arrayPt, RWSize count) |
virtual void | putWchar_t (wchar_t value) |
virtual void | putWchar_ts (const wchar_t *arrayPt, RWSize count) |
virtual void | putWCharacter (wchar_t value) |
virtual void | putWString (const wchar_t *arrayPt, RWSize count) |
Public Member Functions inherited from RWDataOutputStreamImp | |
virtual | ~RWDataOutputStreamImp () |
virtual RWDataOutputStream | acquire () |
virtual void | release () |
Public Member Functions inherited from RWOutputStreamImp | |
virtual | ~RWOutputStreamImp () |
virtual void | close () |
Public Member Functions inherited from RWStreamImp | |
virtual | ~RWStreamImp () |
Static Public Member Functions | |
static RWDataOutputStream | make (RWvostream &vstrm) |
Additional Inherited Members | |
Protected Types inherited from RWTCountingBody< RWMutexLock > | |
typedef RWTLockGuard< RWTMonitor< RWMutexLock > > | LockGuard |
typedef RWTTryLockGuard< RWTMonitor< RWMutexLock > > | TryLockGuard |
typedef RWTUnlockGuard< RWTMonitor< RWMutexLock > > | UnlockGuard |
Protected Types inherited from RWTMonitor< RWMutexLock > | |
typedef RWTLockGuard< RWTMonitor< RWMutexLock > > | LockGuard |
typedef RWTTryLockGuard< RWTMonitor< RWMutexLock > > | TryLockGuard |
typedef RWTUnlockGuard< RWTMonitor< RWMutexLock > > | UnlockGuard |
An adapter class that allows an Essential Tools Module virtual output stream (RWvostream) to be used where an RWDataOutputStream is required. Implements the body idiom from the handle-body pattern.
|
inlineprotected |
Constructs an RWDataToVirtualOutputStreamImp instance that adapts the RW virtual output stream instance vstrm to the RWDataOutputStreamImp interface. Throws no exceptions.
vstrm | The virtual output stream being adapted. |
|
inlinevirtual |
Flushes the stream.
Implements RWOutputStreamImp.
|
inlinevirtual |
Returns true
to indicate a loss of integrity resulting from an input or output operation, such as an irrecoverable read error from a file. Throws no exceptions.
Implements RWStreamImp.
|
inlinevirtual |
Returns true
to indicate that an input operation failed to read the expected data, or that an output operation failed to generate the desired data. Throws no exceptions.
Implements RWStreamImp.
|
inlinevirtual |
Returns true
to indicate a stream in a valid state. Throws no exceptions.
Implements RWStreamImp.
|
inlinestatic |
Returns an RWDataToVirtualOutputStreamImp instance that adapts the RW virtual output stream instance vstrm to the RWDataOutputStreamImp interface. Throws no exceptions.
vstrm | The virtual output stream being adapted. |
|
inlinevirtual |
Writes a bool
value to the stream.
value | The bool value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of bool
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes a char
value to the stream.
value | The char value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes a TinyCharacter
value to the stream.
value | The TinyCharacter value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of char
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes a double
value to the stream.
value | The double value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of double
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes a float
value to the stream.
value | The float value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of float
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an int
value to the stream.
value | The int value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of int
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes a long
value to the stream.
value | The long value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes a long double
value to the stream.
value | The long double value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of long double
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes a long long
value to the stream.
value | The long long value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of long long
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of long
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes a short
value to the stream.
value | The short value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of short
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes a signed char
value to the stream.
value | The signed char value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of signed char
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of char
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes a UnicodeCharacter
value to the stream.
value | The UnicodeCharacter value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an unsigned char
value to the stream.
value | The unsigned char value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of unsigned char
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an unsigned int
value to the stream.
value | The unsigned int value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of unsigned int
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an unsigned long
value to the stream.
value | The unsigned long value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of unsigned long
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an unsigned short
value to the stream.
value | The unsigned short value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of unsigned short
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of char
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes a wchar_t
value to the stream.
value | The wchar_t value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of wchar_t
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes a WideCharacter
value to the stream.
value | The WideCharacter value to be written to the stream. |
Implements RWDataOutputStreamImp.
|
inlinevirtual |
Writes an array of char
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be written to the stream. |
Implements RWDataOutputStreamImp.
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |