SourcePro® API Reference Guide

 
List of all members | Public Member Functions | Protected Member Functions
RWFilteredWCharOutputStreamImp Class Reference

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

#include <rw/stream/RWFilteredWCharOutputStreamImp.h>

Inheritance diagram for RWFilteredWCharOutputStreamImp:
RWWCharOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase RWTCountingBody< RWMutexLock > RWTMonitor< RWMutexLock >

Public Member Functions

virtual ~RWFilteredWCharOutputStreamImp ()
 
virtual void close ()
 
virtual void flush ()
 
virtual bool isBad () const
 
virtual bool isFail () const
 
virtual bool isGood () const
 
virtual void write (wchar_t wcharValue)
 
virtual void write (const wchar_t *wcharArray, RWSize numWChars)
 
- Public Member Functions inherited from RWWCharOutputStreamImp
virtual ~RWWCharOutputStreamImp ()
 
virtual RWWCharOutputStream acquire ()
 
virtual void release ()
 
- Public Member Functions inherited from RWOutputStreamImp
virtual ~RWOutputStreamImp ()
 
- Public Member Functions inherited from RWStreamImp
virtual ~RWStreamImp ()
 

Protected Member Functions

 RWFilteredWCharOutputStreamImp (const RWWCharOutputStream &sinkStream)
 
RWWCharOutputStreamgetSinkStream ()
 
const RWWCharOutputStreamgetSinkStream () const
 
- Protected Member Functions inherited from RWWCharOutputStreamImp
 RWWCharOutputStreamImp ()
 
- Protected Member Functions inherited from RWOutputStreamImp
 RWOutputStreamImp ()
 
- Protected Member Functions inherited from RWStreamImp
 RWStreamImp ()
 
- Protected Member Functions inherited from RWBodyBase
 RWBodyBase (void)
 
 RWBodyBase (RWStaticCtor)
 
 RWBodyBase (const RWBodyBase &second)
 
virtual ~RWBodyBase (void)
 
RWBodyBaseoperator= (const RWBodyBase &second)
 
- Protected Member Functions inherited from RWTCountingBody< RWMutexLock >
 RWTCountingBody (unsigned initCount=0)
 
 RWTCountingBody (RWStaticCtor)
 
 RWTCountingBody (const RWTCountingBody< RWMutexLock > &second)
 
RWTCountingBody< RWMutexLock > & operator= (const RWTCountingBody< RWMutexLock > &second)
 
 ~RWTCountingBody (void)
 
unsigned addReference (void)
 
unsigned references (void) const
 
unsigned removeReference (void)
 
- Protected Member Functions inherited from RWTMonitor< RWMutexLock >
 RWTMonitor ()
 
 RWTMonitor (RWStaticCtor)
 
 RWTMonitor (const RWTMonitor< RWMutexLock > &second)
 
 ~RWTMonitor ()
 
void acquire ()
 
bool isAcquired () const
 
RWTMonitor< RWMutexLock > & monitor () const
 
RWMutexLockmutex ()
 
RWTMonitor< RWMutexLock > & operator= (const RWTMonitor< RWMutexLock > &)
 
void release ()
 
bool tryAcquire ()
 

Additional Inherited Members

- Protected Types inherited from RWTCountingBody< RWMutexLock >
typedef RWTLockGuard< RWTMonitor< RWMutexLock > > LockGuard
 
typedef RWTTryLockGuard< RWTMonitor< RWMutexLock > > TryLockGuard
 
typedef RWTUnlockGuard< RWTMonitor< RWMutexLock > > UnlockGuard
 
- Protected Types inherited from RWTMonitor< RWMutexLock >
typedef RWTLockGuard< RWTMonitor< RWMutexLock > > LockGuard
 
typedef RWTTryLockGuard< RWTMonitor< RWMutexLock > > TryLockGuard
 
typedef RWTUnlockGuard< RWTMonitor< RWMutexLock > > UnlockGuard
 

Detailed Description

Abstract base class for all the filtered wide character 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 RWFilteredWCharOutputStreamImp::~RWFilteredWCharOutputStreamImp ( )
virtual

Destructor. Throws no exceptions.

RWFilteredWCharOutputStreamImp::RWFilteredWCharOutputStreamImp ( const RWWCharOutputStream sinkStream)
inlineprotected

Used by derived classes to initialize the next processing stream.

Parameters
sinkStreamA handle to the next processing stream.

Member Function Documentation

virtual void RWFilteredWCharOutputStreamImp::close ( )
virtual

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

Reimplemented from RWOutputStreamImp.

virtual void RWFilteredWCharOutputStreamImp::flush ( )
virtual

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

Implements RWOutputStreamImp.

RWWCharOutputStream& RWFilteredWCharOutputStreamImp::getSinkStream ( )
inlineprotected

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

const RWWCharOutputStream& RWFilteredWCharOutputStreamImp::getSinkStream ( ) const
inlineprotected

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

virtual bool RWFilteredWCharOutputStreamImp::isBad ( ) const
virtual

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

Implements RWStreamImp.

virtual bool RWFilteredWCharOutputStreamImp::isFail ( ) const
virtual

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

Implements RWStreamImp.

virtual bool RWFilteredWCharOutputStreamImp::isGood ( ) const
virtual

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

Implements RWStreamImp.

virtual void RWFilteredWCharOutputStreamImp::write ( wchar_t  wcharValue)
virtual

Forwards the writing of a single wide character to the next processing stream.

Parameters
wcharValueThe wide character to be written.

Implements RWWCharOutputStreamImp.

virtual void RWFilteredWCharOutputStreamImp::write ( const wchar_t *  wcharArray,
RWSize  numWChars 
)
virtual

Forwards the writing of an array of wide characters to the next processing stream.

Parameters
wcharArrayA pointer to the first element of the array.
numWCharsThe number of wide character(s) to be written to the stream.

Implements RWWCharOutputStreamImp.

Copyright © 2022 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.