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

RWByteToStreambufOutputStreamImp

Module:  Advanced Tools   Package:  Streams


RWByteToStreambufOutputStreamImp RWByteOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase

Local Index

Members

Header File

#include <rw/stream/RWByteToStreambufOutputStreamImp.h>

Description

Concrete class connecting a binary stream to an iostreams narrow character buffer. The iostreams buffer is used as sink for the data written to the binary stream. The iostreams buffer must be opened in binary mode. Implements the body idiom from the handle-body pattern.

Protected Constructor

RWByteToStreambufOutputStreamImp(streambuf& sinkBuff);

Public Destructor

virtual 
~RWByteToStreambufOutputStreamImp();

Static Public Member Function

static RWByteOutputStream 
make(RW_SL_IO_STD(streambuf)& sink);

Public Member Functions

virtual void 
close();
virtual void 
flush();
virtual bool 
isBad() const;
virtual bool 
isFail() const;
virtual bool 
isGood() const;
virtual void 
write(RWByte byteValue);
virtual void 
write(const RWByte* byteArray, RWSize numBytes);

Protected Member Functions

streambuf& getSinkBuff();

const 
streambuf& getSinkBuff() const;


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.