rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWFilteredByteOutputStreamImp Class Reference
[Streams]

Abstract base class for all the filtered binary output stream implementation classes. More...

#include <rw/stream/RWFilteredByteOutputStreamImp.h>

Inheritance diagram for RWFilteredByteOutputStreamImp:
RWByteOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase RWTCountingBody< RWMutexLock > RWTMonitor< RWMutexLock >

List of all members.

Public Member Functions

virtual ~RWFilteredByteOutputStreamImp ()
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

 RWFilteredByteOutputStreamImp (const RWByteOutputStream &sinkStream)
RWByteOutputStreamgetSinkStream ()
const RWByteOutputStreamgetSinkStream () const

Detailed Description

Abstract base class for all the filtered binary output stream implementation classes. A filtered output stream is a stream that process elements and then forwards the result to another stream for further processing. Implements the body idiom from the handle-body pattern.


Constructor & Destructor Documentation

virtual RWFilteredByteOutputStreamImp::~RWFilteredByteOutputStreamImp (  )  [virtual]

Destructor. Throws no exceptions.

RWFilteredByteOutputStreamImp::RWFilteredByteOutputStreamImp ( const RWByteOutputStream sinkStream  )  [inline, protected]

Used by derived classes to initialize the next processing stream.

Parameters:
sinkStream A handle to the next processing stream.

Member Function Documentation

virtual void RWFilteredByteOutputStreamImp::close (  )  [virtual]

Forwards the close() request to the next processing stream.

Reimplemented from RWOutputStreamImp.

virtual void RWFilteredByteOutputStreamImp::flush (  )  [virtual]

Forwards the flush() request to the next processing stream.

Implements RWOutputStreamImp.

const RWByteOutputStream& RWFilteredByteOutputStreamImp::getSinkStream (  )  const [inline, protected]

Return a handle to the next processing stream. Throws no exceptions.

RWByteOutputStream& RWFilteredByteOutputStreamImp::getSinkStream (  )  [inline, protected]

Return a handle to the next processing stream. Throws no exceptions.

virtual bool RWFilteredByteOutputStreamImp::isBad (  )  const [virtual]

Forwards the isBad() request to the next processing stream. Throws no exceptions.

Implements RWStreamImp.

virtual bool RWFilteredByteOutputStreamImp::isFail (  )  const [virtual]

Forwards the isFail() request to the next processing stream. Throws no exceptions.

Implements RWStreamImp.

virtual bool RWFilteredByteOutputStreamImp::isGood (  )  const [virtual]

Forwards the isGood() request to the next processing stream. Throws no exceptions.

Implements RWStreamImp.

virtual void RWFilteredByteOutputStreamImp::write ( const RWByte byteArray,
RWSize  numBytes 
) [virtual]

Forwards the writing of an array of bytes to the next processing stream.

Parameters:
byteArray A pointer to the first element of the array.
numBytes The number of byte(s) to be written to the stream.

Implements RWByteOutputStreamImp.

virtual void RWFilteredByteOutputStreamImp::write ( RWByte  byteValue  )  [virtual]

Forwards the writing of a single byte to the next processing stream.

Parameters:
byteValue The byte to be written.

Implements RWByteOutputStreamImp.

 All Classes Functions Variables Typedefs Enumerations Enumerator Friends

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