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

RWTStreambufFromByteCharInputStream <InputStream>

Module:  Advanced Tools   Package:  Streams


RWTStreambufFromByteCharInputStream std::streambuf

Local Index

Members

Header File

#include <rw/stream/RWTStreambufFromByteCharInputStream.h>

Description

The class RWTStreambufFromByteCharInputStream is an adaptor class that adapts the iostreams std::streambuf interface to the Rogue Wave binary and narrow character Input Stream interfaces. Requests made through the iostreams streambuf interface are forwarded to the embedded input stream handle. Calls to the iostreams streambuf functions dealing with the streambuf's output sequence will always fail since the underlying output stream only supports input operations. The type of the underlying input stream is provided by the template parameter InputStream, and can be RWByteInputStream or RWCharInputStream.

Member Typedefs

typedef InputStream RWInputStream_type      RWInputStream_type 
typedef InputStream::element_type           element_type 

Public Constructor

RWTStreambufFromByteCharInputStream(InputStream&
sourceStream);

Public Destructor

virtual 
~RWTStreambufFromByteCharInputStream();

Protected Member Functions

InputStream& 
getSourceStream();

const InputStream& 
getSourceStream() const;
virtual int_type 
overflow(int_type c = traits_type::eof());
virtual int 
overflow(int c=EOF); 
virtual int_type 
pbackfail(int_type c = traits_type::eof());
virtual int 
pbackfail(int c=EOF); 
virtual pos_type 
seekoff(off_type off, ios_base::seekdir way,ios_base::openmode
which = ios_base::in | ios_base::out);
virtual streampos 
seekoff(streamoff offset, ios::seek_dir dir, int mode= ios::in
| ios::out);
virtual pos_type 
seekpos(pos_type sp,ios_base::openmode which = ios_base::in 
| ios_base::out);
virtual streampos 
seekpos(streampos, int mode= ios::in | ios::out);
virtual int 
showmanyc();
virtual int 
sync(); 
virtual streamsize 
xsgetn(char_type* s, streamsize n);
virtual int 
xsgetn(char* s, int n);
virtual streamsize 
xsputn(const char_type*, streamsize);
virtual int 
xsputn(const char*, int);
virtual int_type 
underflow();
virtual int 
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.