SourcePro® 2024.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 RWByteFromStreambufInputStreamImp, RWCharFromStreambufInputStreamImp, RWDataFromByteInputStreamImp, RWDataFromCharInputStreamImp, RWDataFromVirtualInputStreamImp, RWFilteredByteInputStreamImp, RWFilteredCharInputStreamImp, RWFilteredDataInputStreamImp, RWFilteredUCharInputStreamImp, RWFilteredWCharInputStreamImp, RWIstreamDataFromCharInputStreamImp, RWSynchronizedDataInputStreamImp, RWTInputStreamBufferImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWByteInputStream, RWFilteredByteInputStreamImp >, RWTInputStreamLockImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWUCharInputStream, RWFilteredUCharInputStreamImp >, RWTInputStreamLockImp< RWWCharInputStream, RWFilteredWCharInputStreamImp >, RWUCharFromByteInputStreamImp, RWUCharFromUTF8ByteInputStreamImp, and RWWCharFromWStreambufInputStreamImp.
|
pure virtual |
Returns true
to indicate that an input operation reached the end of an input sequence. Throws no exceptions.
Implemented in RWByteFromStreambufInputStreamImp, RWCharFromStreambufInputStreamImp, RWDataFromByteInputStreamImp, RWDataFromCharInputStreamImp, RWDataFromVirtualInputStreamImp, RWFilteredByteInputStreamImp, RWFilteredCharInputStreamImp, RWFilteredDataInputStreamImp, RWFilteredUCharInputStreamImp, RWFilteredWCharInputStreamImp, RWIstreamDataFromCharInputStreamImp, RWSynchronizedDataInputStreamImp, RWTInputStreamBufferImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWByteInputStream, RWFilteredByteInputStreamImp >, RWTInputStreamLockImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWUCharInputStream, RWFilteredUCharInputStreamImp >, RWTInputStreamLockImp< RWWCharInputStream, RWFilteredWCharInputStreamImp >, RWUCharFromByteInputStreamImp, RWUCharFromUTF8ByteInputStreamImp, and RWWCharFromWStreambufInputStreamImp.
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 RWByteFromStreambufInputStreamImp, RWCharFromStreambufInputStreamImp, RWDataFromByteInputStreamImp, RWDataFromCharInputStreamImp, RWDataFromVirtualInputStreamImp, RWFilteredByteInputStreamImp, RWFilteredCharInputStreamImp, RWFilteredDataInputStreamImp, RWFilteredUCharInputStreamImp, RWFilteredWCharInputStreamImp, RWIstreamDataFromCharInputStreamImp, RWSynchronizedDataInputStreamImp, RWTInputStreamBufferImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWByteInputStream, RWFilteredByteInputStreamImp >, RWTInputStreamLockImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWUCharInputStream, RWFilteredUCharInputStreamImp >, RWTInputStreamLockImp< RWWCharInputStream, RWFilteredWCharInputStreamImp >, RWUCharFromByteInputStreamImp, RWUCharFromUTF8ByteInputStreamImp, and RWWCharFromWStreambufInputStreamImp.
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |