SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Abstract base class from which all input stream implementation classes that convert from data to narrow characters must derive. More...
#include <rw/stream/RWDataFromCharInputStreamImp.h>
Public Member Functions | |
virtual | ~RWDataFromCharInputStreamImp () |
virtual RWSize | available () const |
virtual void | close () |
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 () |
virtual void | getBool (bool &value)=0 |
virtual RWSize | getBools (bool *arrayPt, RWSize count)=0 |
virtual void | getChar (char &value)=0 |
virtual void | getCharacter (char &value)=0 |
virtual RWSize | getChars (char *arrayPt, RWSize count)=0 |
virtual RWSize | getDelimitedString (char *string, RWSize maxCount, char delim)=0 |
virtual RWSize | getDelimitedUString (RWUChar *ustring, RWSize maxCount, RWUChar delim)=0 |
virtual RWSize | getDelimitedWString (wchar_t *wstring, RWSize maxCount, wchar_t delim)=0 |
virtual void | getDouble (double &value)=0 |
virtual RWSize | getDoubles (double *arrayPt, RWSize count)=0 |
virtual void | getFloat (float &value)=0 |
virtual RWSize | getFloats (float *arrayPt, RWSize count)=0 |
virtual void | getInt (int &value)=0 |
virtual RWSize | getInts (int *arrayPt, RWSize count)=0 |
virtual void | getLong (long &value)=0 |
virtual void | getLongDouble (long double &value)=0 |
virtual RWSize | getLongDoubles (long double *arrayPt, RWSize count)=0 |
virtual void | getLongLong (long long &value)=0 |
virtual RWSize | getLongLongs (long long *arrayPt, RWSize count)=0 |
virtual RWSize | getLongs (long *arrayPt, RWSize count)=0 |
virtual void | getShort (short &value)=0 |
virtual RWSize | getShorts (short *arrayPt, RWSize count)=0 |
virtual void | getSignedChar (signed char &value)=0 |
virtual RWSize | getSignedChars (signed char *arrayPt, RWSize count)=0 |
virtual void | getSizeT (size_t &value)=0 |
virtual RWSize | getString (char *string, RWSize count)=0 |
virtual void | getUCharacter (RWUChar &value)=0 |
virtual void | getUnsignedChar (unsigned char &value)=0 |
virtual RWSize | getUnsignedChars (unsigned char *arrayPt, RWSize count)=0 |
virtual void | getUnsignedInt (unsigned int &value)=0 |
virtual RWSize | getUnsignedInts (unsigned int *arrayPt, RWSize count)=0 |
virtual void | getUnsignedLong (unsigned long &value)=0 |
virtual void | getUnsignedLongLong (unsigned long long &value)=0 |
virtual RWSize | getUnsignedLongLongs (unsigned long long *arrayPt, RWSize count)=0 |
virtual RWSize | getUnsignedLongs (unsigned long *arrayPt, RWSize count)=0 |
virtual void | getUnsignedShort (unsigned short &value)=0 |
virtual RWSize | getUnsignedShorts (unsigned short *arrayPt, RWSize count)=0 |
virtual RWSize | getUString (RWUChar *arrayPt, RWSize count)=0 |
virtual void | getWchar_t (wchar_t &value)=0 |
virtual RWSize | getWchar_ts (wchar_t *arrayPt, RWSize count)=0 |
virtual void | getWCharacter (wchar_t &value)=0 |
virtual RWSize | getWString (wchar_t *wstring, RWSize count)=0 |
Public Member Functions inherited from RWInputStreamImp | |
virtual | ~RWInputStreamImp () |
Public Member Functions inherited from RWStreamImp | |
virtual | ~RWStreamImp () |
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 |
Abstract base class for all the data from narrow character conversion input stream implementation classes. A conversion input stream, is a stream that uses an attached input stream of a different format as the source of elements to its own functions. Implements the body idiom from the handle-body pattern.
|
virtual |
Destructor. Throws no exceptions.
|
inlineprotected |
Used by derived classes to initialize the attached source stream.
sourceStream | A handle to the attached source stream. |
|
virtual |
Returns the number of narrow characters that can be read from the attached source stream without blocking. Throws no exceptions
Implements RWInputStreamImp.
Reimplemented in RWIstreamDataFromCharInputStreamImp.
|
virtual |
Forwards the close() request to the attached source stream.
Implements RWStreamImp.
Reimplemented in RWIstreamDataFromCharInputStreamImp.
|
inlineprotected |
Returns a handle to the attached source stream. They throw no exceptions.
|
inlineprotected |
Returns a handle to the attached source stream. They throw no exceptions.
|
virtual |
Forwards the isBad() request to the attached source stream. Throws no exceptions.
Implements RWStreamImp.
Reimplemented in RWIstreamDataFromCharInputStreamImp.
|
virtual |
Forwards the isEof() request to the attached source stream. Throws no exceptions.
Implements RWInputStreamImp.
Reimplemented in RWIstreamDataFromCharInputStreamImp.
|
virtual |
Forwards the isFail() request to the attached source stream. Throws no exceptions
Implements RWStreamImp.
Reimplemented in RWIstreamDataFromCharInputStreamImp.
|
virtual |
Forwards the isGood() request to the attached source stream. Throws no exceptions.
Implements RWStreamImp.
Reimplemented in RWIstreamDataFromCharInputStreamImp.
Skips numUnits narrow characters from the input sequence of the attached source stream if possible. The function returns the actual number of narrow characters skipped, which can be any value between 0 and numUnits.
numUnits | The number of narrow characters to be skipped. |
Implements RWInputStreamImp.
Reimplemented in RWIstreamDataFromCharInputStreamImp.
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |