Module: Advanced Tools Package: Streams
RWInputStreamImp RWStreamImp RWBodyBase
#include <rw/stream/RWInputStreamImp.h>
Abstract base class for all the input stream implementation classes. Implements the body idiom from the handle-body pattern.
RWInputStreamImp();
Constructor.
virtual ~RWInputStreamImp();
Destructor.
virtual RWSize available() const =0;
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.
virtual bool isEof() const =0;
Returns true to indicate that an input operation reached the end of an input sequence. Throws no exceptions.
virtual RWSize skip(RWSize numUnits) =0;
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.
Parameter List
numUnits |
The number of elements to be skipped. |
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.