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

RWTStreambufToByteCharOutputStream <OutputStream>

Module:  Advanced Tools   Package:  Streams


RWTStreambufToByteCharOutputStream std::streambuf

Local Index

Members

Header File

#include <rw/stream/RWTStreambufToByteCharOutputStream.h>

Description

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

Member Typedefs

typedef OutputStream RWOutputStream_type   RWOutputStream_type 
typedef typename OutputStream::element_type       element_type 

Public Constructor

RWTStreambufToByteCharOutputStream(OutputStream& sinkStream);

Public Destructor

virtual 
~RWTStreambufToByteCharOutputStream();

Protected Member Functions

OutputStream& 
getSinkStream();
const OutputStream& 
getSinkStream() 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::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 
sync(); 
virtual int_type 
underflow();
virtual int 
underflow();
virtual streamsize 
xsgetn(char_type*, streamsize);
virtual int 
xsgetn(char*, int);
virtual streamsize 
xsputn(const char_type* s, streamsize n);
virtual int 
xsputn(const char* s, int n);


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.