Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Advanced Tools Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWTInputStreamBufferImp<InputStream, FilteredInputStreamImp>

Module:  Advanced Tools   Package:  Streams


RWTInputStreamBufferImp FilteredInputStreamImp

Local Index

Members

Header File

#include <rw/stream/RWTInputStreamBufferImp.h>

Description

The class RWTInputStreamBufferImp implements a buffer that can be used with any kind of input stream. The size of the buffer is specified in its static member make() function, which is used to create it.

Member Typedefs

typedef Inputstream RWInputStream_type      RWInputStream_type
typedef InputStream::element_type                 element_type

Protected Constructors

RWTInputStreamBufferImp(InputStream& sourceStream);
RWTInputStreamBufferImp(InputStream& sourceStream, 
RWSize bufSize);
RWTInputStreamBufferImp(InputStream& sourceStream,
element_type* buffer, RWSize bufSize);

Public Destructor

virtual 
~RWTInputStreamBufferImp();

Static Public Member Functions

static InputStream 
make(InputStream& sourceStream);
static InputStream 
make(InputStream& sourceStream, RWSize bufSize);
static InputStream 
make(InputStream& sourceStream, element_type* buffer, 
RWSize bufSize);

Public Member Functions

virtual RWSize 
available() const;
virtual bool 
isBad() const;
virtual bool 
isEof() const;
virtual bool 
isFail() const;
virtual bool 
isGood() const;
virtual element_type 
read();
virtual RWSize 
read(element_type* array, RWSize num);
virtual RWSize 
readUntil(element_type* array, RWSize maxSize, 
element_type delim);
virtual RWSize 
skip(RWSize numUnits);

Protected Member Functions

element_type* 
eback() const; 
element_type* 
ebuf() const;
element_type* 
egptr() const;
void 
freeBuffer();
element_type* 
gptr() const; 
void 
gbump(RWSize n);
void 
setBufferEnd(element_type* gend_arg);
void 
setg(element_type* gbeg_arg,
element_type* gcur_arg,element_type* gend_arg);
bool 
underflow();


Previous fileTop of DocumentContentsIndex pageNext file

© 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.