Adaptor class to adapt the iostreams std::streambuf interface to the Rogue Wave binary and narrow character Input Stream interfaces.
More...
#include <rw/stream/RWTStreambufFromByteCharInputStream.h>
Inherits streambuf.
|
InputStream & | getSourceStream () |
|
const InputStream & | getSourceStream () const |
|
virtual int_type | overflow (int_type c=traits_type::eof()) |
|
virtual int_type | pbackfail (int_type c=traits_type::eof()) |
|
virtual pos_type | seekoff (off_type off, std::ios_base::seekdir way, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out) |
|
virtual pos_type | seekpos (pos_type sp, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out) |
|
virtual std::streamsize | showmanyc () |
|
virtual int | sync () |
|
virtual int_type | underflow () |
|
virtual std::streamsize | xsputn (const char_type *, std::streamsize) |
|
template<class InputStream>
class RWTStreambufFromByteCharInputStream< InputStream >
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 std::streambuf interface are forwarded to the embedded input stream handle. Calls to the iostreams std::streambuf functions dealing with the std::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.
template<class InputStream >
template<class InputStream >
A typedef for the template parameter InputStream
which will be used as the source of elements.
template<class InputStream >
Initializes the reference to the input stream that will be used as the source of elements.
- Parameters
-
sourceStream | The input stream that will serve as the source of elements. |
template<class InputStream >
Returns a handle to the embedded InputStream
that is used as the source of elements. Throw no exceptions.
template<class InputStream >
Returns a handle to the embedded InputStream
that is used as the source of elements. Throw no exceptions.
template<class InputStream >
This function always returns EOF to indicate failure. Throws no exceptions.
template<class InputStream >
This function always returns EOF
to indicate failure. Throws no exceptions.
template<class InputStream >
virtual pos_type RWTStreambufFromByteCharInputStream< InputStream >::seekoff |
( |
off_type |
off, |
|
|
std::ios_base::seekdir |
way, |
|
|
std::ios_base::openmode |
which = std::ios_base::in|std::ios_base::out |
|
) |
| |
|
protectedvirtual |
This function always returns EOF
to indicate failure. Throws no exceptions.
template<class InputStream >
This function always returns EOF
to indicate failure. Throws no exceptions.
template<class InputStream >
This function always returns 0. Throws no exceptions.
template<class InputStream >
This function always returns zero. Throws no exceptions.
template<class InputStream >
This function returns the first character in the get area if called when there are characters in the get area. If the get area is empty, then the function returns the next character that would be read from the input sequence. Throws no exceptions.
template<class InputStream >
This function always returns EOF
to indicate failure. Throws no exceptions.