rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWByteOutputStreamImp Class Reference
[Streams]

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

#include <rw/stream/RWByteOutputStreamImp.h>

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

List of all members.

Public Member Functions

virtual ~RWByteOutputStreamImp ()
virtual void write (RWByte byteValue)=0
virtual void write (const RWByte *byteArray, RWSize numBytes)=0
virtual RWByteOutputStream acquire ()
virtual void release ()

Protected Member Functions

 RWByteOutputStreamImp ()

Detailed Description

Abstract base class for all the binary output stream implementation classes. Implements the body idiom from the handle-body pattern.


Constructor & Destructor Documentation

virtual RWByteOutputStreamImp::~RWByteOutputStreamImp (  )  [inline, virtual]

Destructor.

RWByteOutputStreamImp::RWByteOutputStreamImp (  )  [inline, protected]

Constructor.


Member Function Documentation

virtual RWByteOutputStream RWByteOutputStreamImp::acquire (  )  [virtual]

Acquires the synchronization mechanism provided by a stream concrete implementation. The acquire() member function returns a handle to the binary stream that should be used for output operation after acquiring the synchronization mechanism.

Reimplemented from RWTMonitor< RWMutexLock >.

virtual void RWByteOutputStreamImp::release (  )  [inline, virtual]

Releases the synchronization mechanism provided by a stream concrete implementation.

Reimplemented from RWTMonitor< RWMutexLock >.

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

Writes an array of bytes to the stream.

Parameters:
byteArray A pointer to the first element of the array.
numBytes The number of bytes to be written to the stream.

Implemented in RWByteToStreambufOutputStreamImp, RWChainedByteArrayOutputStreamImp, and RWFilteredByteOutputStreamImp.

virtual void RWByteOutputStreamImp::write ( RWByte  byteValue  )  [pure virtual]

Writes a single byte to the stream.

Parameters:
byteValue The byte to be written to the stream.

Implemented in RWByteToStreambufOutputStreamImp, RWChainedByteArrayOutputStreamImp, and RWFilteredByteOutputStreamImp.

 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.