SourcePro® 2023.1 |
SourcePro® API Reference Guide |
Adapter class that allows virtual input stream class RWvistream to be used where data input stream class RWDataInputStream is required. More...
#include <rw/serial/RWDataFromVirtualInputStreamImp.h>
Public Member Functions | |
virtual RWSize | available () const |
virtual void | close () |
virtual void | getBool (bool &value) |
virtual RWSize | getBools (bool *arrayPt, RWSize count) |
virtual void | getChar (char &value) |
virtual void | getCharacter (char &value) |
virtual RWSize | getChars (char *arrayPt, RWSize count) |
virtual RWSize | getDelimitedString (char *arrayPt, RWSize count, char delim= '\0') |
virtual RWSize | getDelimitedUString (RWUChar *arrayPt, RWSize count, unsigned short delim) |
virtual RWSize | getDelimitedWString (wchar_t *arrayPt, RWSize count, wchar_t delim=L'\0') |
virtual void | getDouble (double &value) |
virtual RWSize | getDoubles (double *arrayPt, RWSize count) |
virtual void | getFloat (float &value) |
virtual RWSize | getFloats (float *arrayPt, RWSize count) |
virtual void | getInt (int &value) |
virtual RWSize | getInts (int *arrayPt, RWSize count) |
virtual void | getLong (long &value) |
virtual void | getLongDouble (long double &value) |
virtual RWSize | getLongDoubles (long double *arrayPt, RWSize count) |
virtual void | getLongLong (long long &value) |
virtual RWSize | getLongLongs (long long *arrayPt, RWSize count) |
virtual RWSize | getLongs (long *arrayPt, RWSize count) |
virtual void | getShort (short &value) |
virtual RWSize | getShorts (short *arrayPt, RWSize count) |
virtual void | getSignedChar (signed char &value) |
virtual RWSize | getSignedChars (signed char *arrayPt, RWSize count) |
virtual void | getSizeT (size_t &value) |
virtual RWSize | getString (char *arrayPt, RWSize count) |
virtual void | getUCharacter (RWUChar &value) |
virtual void | getUnsignedChar (unsigned char &value) |
virtual RWSize | getUnsignedChars (unsigned char *arrayPt, RWSize count) |
virtual void | getUnsignedInt (unsigned int &value) |
virtual RWSize | getUnsignedInts (unsigned int *arrayPt, RWSize count) |
virtual void | getUnsignedLong (unsigned long &value) |
virtual void | getUnsignedLongLong (unsigned long long &value) |
virtual RWSize | getUnsignedLongLongs (unsigned long long *arrayPt, RWSize count) |
virtual RWSize | getUnsignedLongs (unsigned long *arrayPt, RWSize count) |
virtual void | getUnsignedShort (unsigned short &value) |
virtual RWSize | getUnsignedShorts (unsigned short *arrayPt, RWSize count) |
virtual RWSize | getUString (RWUChar *arrayPt, RWSize count) |
virtual void | getWchar_t (wchar_t &value) |
virtual RWSize | getWchar_ts (wchar_t *arrayPt, RWSize count) |
virtual void | getWCharacter (wchar_t &value) |
virtual RWSize | getWString (wchar_t *arrayPt, RWSize count) |
virtual bool | isBad () const |
virtual bool | isEof () const |
virtual bool | isFail () const |
virtual bool | isGood () const |
virtual RWSize | skip (RWSize numUnits) |
Public Member Functions inherited from RWDataInputStreamImp | |
virtual | ~RWDataInputStreamImp () |
Public Member Functions inherited from RWInputStreamImp | |
virtual | ~RWInputStreamImp () |
Public Member Functions inherited from RWStreamImp | |
virtual | ~RWStreamImp () |
Static Public Member Functions | |
static RWDataInputStream | make (RWvistream &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 input stream (RWvistream) to be used where an RWDataInputStream is required. Implements the body idiom from the handle-body pattern.
|
inlineprotected |
Constructs an RWDataFromVirtualInputStreamImp instance that adapts the RW virtual input stream instance vstrm to the RWDataInputStreamImp interface. Throws no exceptions.
vstrm | The virtual input stream being adapted. |
|
inlinevirtual |
Returns the number of available elements that can be read from the stream without blocking. The type of the elements read is specified by derived classes and can be one of the following: RWByte, char
, RWUChar, or wchar_t
. Throws no exceptions.
Implements RWInputStreamImp.
|
inlinevirtual |
Closes the stream.
Implements RWStreamImp.
|
inlinevirtual |
Reads a bool
value from the stream.
value | The bool value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of bool
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a char
value from the stream.
value | The char value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a TinyCharacter
value from the stream.
value | The TinyCharacter value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of char
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a String
value from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
delim | The narrow character used as a delimiter. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a UTF-16 string value from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
delim | The UTF-16 character used as a delimiter. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a wide string value from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
delim | The wide character used as a delimiter. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a double
value from the stream.
value | The double value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of double
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a float
value from the stream.
value | The float value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of float
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an int
value from the stream.
value | The int value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of int
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a long
value from the stream.
value | The long value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a long double
value from the stream.
value | The long double value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of long
double
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a long long
value from the stream.
value | The long long value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of long
long
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of long
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a short
value from the stream.
value | The short value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of short
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a signed char
value from the stream.
value | The signed char value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of signed char
values from the stream. The array must have been pre-allocated to contain at least count elements. Returns the number of elements read.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a size_t
value from the stream.
value | The size_t value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a String
value from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a UTF-16
Character value from the stream.
value | The UnicodeCharacter value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an unsigned char
value from the stream.
value | The unsigned char value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of unsigned char
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an unsigned int
value from the stream.
value | The unsigned int value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of unsigned int
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an unsigned long
value from the stream.
value | The unsigned long value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a unsigned long long
value from the stream.
value | The unsigned long long value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of unsigned long long
value(s) from the stream. The array must have been pre-allocated to contain at least count elements. The functions return the number of elements read.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of unsigned long
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an unsigned short
value from the stream.
value | The unsigned short value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of unsigned short
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a UTF-16 string value from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a wchar_t
value from the stream.
value | The wchar_t value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads an array of wchar_t
values from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a WideCharacter
value from the stream.
value | The WideCharacter value to be read from the stream. |
Implements RWDataInputStreamImp.
|
inlinevirtual |
Reads a wide string value from the stream. The array must have been pre-allocated to contain at least count elements.
arrayPt | A pointer to the array's first element. |
count | The number of element(s) to be read from the stream. |
Implements RWDataInputStreamImp.
|
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 reached the end of an input sequence. Throws no exceptions.
Implements RWInputStreamImp.
|
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 RWDataFromVirtualInputStreamImp instance that adapts the RW virtual input stream instance vstrm to the RWDataInputStreamImp interface. Throws no exceptions.
vstrm | The virtual input stream being adapted. |
Skips numUnits elements from the input sequence, if possible. The function returns the actual number of elements skipped, which can be any value between 0
and numUnits. The type of the elements skipped is specified by derived classes and can be one of the following: RWByte, char
, RWUChar, or wchar_t
.
numUnits | The number of elements to be skipped. |
Implements RWInputStreamImp.
Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |