SourcePro® 2022.1 |
SourcePro® API Reference Guide |
Abstract base class for all the input stream implementation classes. More...
#include <rw/stream/RWInputStreamImp.h>
Public Member Functions | |
virtual | ~RWInputStreamImp () |
virtual RWSize | available () const =0 |
virtual bool | isEof () const =0 |
virtual RWSize | skip (RWSize numUnits)=0 |
Public Member Functions inherited from RWStreamImp | |
virtual | ~RWStreamImp () |
virtual void | close ()=0 |
virtual bool | isBad () const =0 |
virtual bool | isFail () const =0 |
virtual bool | isGood () const =0 |
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 input stream implementation classes. Implements the body idiom from the handle-body pattern.
|
inlinevirtual |
Destructor.
|
inlineprotected |
Constructor.
|
pure virtual |
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.
Implemented in RWFilteredDataInputStreamImp, RWTInputStreamBufferImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWCharFromStreambufInputStreamImp, RWDataFromVirtualInputStreamImp, RWByteFromStreambufInputStreamImp, RWUCharFromUTF8ByteInputStreamImp, RWWCharFromWStreambufInputStreamImp, RWUCharFromByteInputStreamImp, RWIstreamDataFromCharInputStreamImp, RWTInputStreamLockImp< RWUCharInputStream, RWFilteredUCharInputStreamImp >, RWTInputStreamLockImp< RWWCharInputStream, RWFilteredWCharInputStreamImp >, RWTInputStreamLockImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWByteInputStream, RWFilteredByteInputStreamImp >, RWFilteredUCharInputStreamImp, RWFilteredWCharInputStreamImp, RWFilteredByteInputStreamImp, RWFilteredCharInputStreamImp, RWSynchronizedDataInputStreamImp, RWDataFromCharInputStreamImp, and RWDataFromByteInputStreamImp.
|
pure virtual |
Returns true
to indicate that an input operation reached the end of an input sequence. Throws no exceptions.
Implemented in RWDataFromVirtualInputStreamImp, RWIstreamDataFromCharInputStreamImp, RWTInputStreamBufferImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWUCharInputStream, RWFilteredUCharInputStreamImp >, RWTInputStreamLockImp< RWWCharInputStream, RWFilteredWCharInputStreamImp >, RWTInputStreamLockImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWByteInputStream, RWFilteredByteInputStreamImp >, RWUCharFromUTF8ByteInputStreamImp, RWUCharFromByteInputStreamImp, RWWCharFromWStreambufInputStreamImp, RWDataFromCharInputStreamImp, RWCharFromStreambufInputStreamImp, RWDataFromByteInputStreamImp, RWFilteredUCharInputStreamImp, RWSynchronizedDataInputStreamImp, RWByteFromStreambufInputStreamImp, RWFilteredWCharInputStreamImp, RWFilteredByteInputStreamImp, RWFilteredCharInputStreamImp, and RWFilteredDataInputStreamImp.
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. |
Implemented in RWFilteredDataInputStreamImp, RWTInputStreamBufferImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWCharFromStreambufInputStreamImp, RWDataFromVirtualInputStreamImp, RWByteFromStreambufInputStreamImp, RWUCharFromUTF8ByteInputStreamImp, RWWCharFromWStreambufInputStreamImp, RWUCharFromByteInputStreamImp, RWIstreamDataFromCharInputStreamImp, RWTInputStreamLockImp< RWUCharInputStream, RWFilteredUCharInputStreamImp >, RWTInputStreamLockImp< RWWCharInputStream, RWFilteredWCharInputStreamImp >, RWTInputStreamLockImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWByteInputStream, RWFilteredByteInputStreamImp >, RWFilteredUCharInputStreamImp, RWFilteredWCharInputStreamImp, RWFilteredByteInputStreamImp, RWFilteredCharInputStreamImp, RWSynchronizedDataInputStreamImp, RWDataFromCharInputStreamImp, and RWDataFromByteInputStreamImp.
Copyright © 2022 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |