SourcePro® API Reference Guide

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

Abstract base class from which all output stream implementation classes that convert from data to narrow characters must derive. More...

#include <rw/stream/RWDataToCharOutputStreamImp.h>

Inheritance diagram for RWDataToCharOutputStreamImp:
RWDataOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase RWTCountingBody< RWMutexLock > RWTMonitor< RWMutexLock > RWOstreamDataToCharOutputStreamImp

Public Member Functions

virtual ~RWDataToCharOutputStreamImp ()
 
virtual void close ()
 
virtual void flush ()
 
virtual bool isBad () const
 
virtual bool isFail () const
 
virtual bool isGood () const
 
- Public Member Functions inherited from RWDataOutputStreamImp
virtual ~RWDataOutputStreamImp ()
 
virtual RWDataOutputStream acquire ()
 
virtual void putBool (bool value)=0
 
virtual void putBools (const bool *arrayPt, RWSize count)=0
 
virtual void putChar (char value)=0
 
virtual void putCharacter (char value)=0
 
virtual void putChars (const char *arrayPt, RWSize count)=0
 
virtual void putDouble (double value)=0
 
virtual void putDoubles (const double *arrayPt, RWSize count)=0
 
virtual void putFloat (float value)=0
 
virtual void putFloats (const float *arrayPt, RWSize count)=0
 
virtual void putInt (int value)=0
 
virtual void putInts (const int *arrayPt, RWSize count)=0
 
virtual void putLong (long value)=0
 
virtual void putLongDouble (long double value)=0
 
virtual void putLongDoubles (const long double *arrayPt, RWSize count)=0
 
virtual void putLongLong (long long value)=0
 
virtual void putLongLongs (const long long *arrayPt, RWSize count)=0
 
virtual void putLongs (const long *arrayPt, RWSize count)=0
 
virtual void putShort (short value)=0
 
virtual void putShorts (const short *arrayPt, RWSize count)=0
 
virtual void putSignedChar (signed char value)=0
 
virtual void putSignedChars (const signed char *arrayPt, RWSize count)=0
 
virtual void putString (const char *string, RWSize count)=0
 
virtual void putUCharacter (RWUChar value)=0
 
virtual void putUnsignedChar (unsigned char value)=0
 
virtual void putUnsignedChars (const unsigned char *arrayPt, RWSize count)=0
 
virtual void putUnsignedInt (unsigned int value)=0
 
virtual void putUnsignedInts (const unsigned int *arrayPt, RWSize count)=0
 
virtual void putUnsignedLong (unsigned long value)=0
 
virtual void putUnsignedLongs (const unsigned long *arrayPt, RWSize count)=0
 
virtual void putUnsignedShort (unsigned short value)=0
 
virtual void putUnsignedShorts (const unsigned short *arrayPt, RWSize count)=0
 
virtual void putUString (const RWUChar *ustring, RWSize count)=0
 
virtual void putWchar_t (wchar_t value)=0
 
virtual void putWchar_ts (const wchar_t *arrayPt, RWSize count)=0
 
virtual void putWCharacter (wchar_t value)=0
 
virtual void putWString (const wchar_t *wstring, RWSize count)=0
 
virtual void release ()
 
- Public Member Functions inherited from RWOutputStreamImp
virtual ~RWOutputStreamImp ()
 
- Public Member Functions inherited from RWStreamImp
virtual ~RWStreamImp ()
 

Protected Member Functions

 RWDataToCharOutputStreamImp (const RWCharOutputStream &sinkStream)
 
RWCharOutputStreamgetSinkStream ()
 
const RWCharOutputStreamgetSinkStream () const
 
- Protected Member Functions inherited from RWDataOutputStreamImp
 RWDataOutputStreamImp ()
 
- 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 data to narrow character conversion output stream implementation classes. A conversion output stream, is a stream that converts elements of one format into another, and then forwards the result to a stream of the destination format for further processing. Implements the body idiom from the handle-body pattern.

Constructor & Destructor Documentation

virtual RWDataToCharOutputStreamImp::~RWDataToCharOutputStreamImp ( )
virtual

Destructor.

RWDataToCharOutputStreamImp::RWDataToCharOutputStreamImp ( const RWCharOutputStream 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 RWDataToCharOutputStreamImp::close ( )
virtual

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

Reimplemented from RWOutputStreamImp.

Reimplemented in RWOstreamDataToCharOutputStreamImp.

virtual void RWDataToCharOutputStreamImp::flush ( )
virtual

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

Implements RWOutputStreamImp.

Reimplemented in RWOstreamDataToCharOutputStreamImp.

RWCharOutputStream& RWDataToCharOutputStreamImp::getSinkStream ( )
inlineprotected

Returns a handle to the next processing stream. They throw no exceptions.

const RWCharOutputStream& RWDataToCharOutputStreamImp::getSinkStream ( ) const
inlineprotected

Returns a handle to the next processing stream. They throw no exceptions.

virtual bool RWDataToCharOutputStreamImp::isBad ( ) const
virtual

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

Implements RWStreamImp.

Reimplemented in RWOstreamDataToCharOutputStreamImp.

virtual bool RWDataToCharOutputStreamImp::isFail ( ) const
virtual

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

Implements RWStreamImp.

Reimplemented in RWOstreamDataToCharOutputStreamImp.

virtual bool RWDataToCharOutputStreamImp::isGood ( ) const
virtual

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

Implements RWStreamImp.

Reimplemented in RWOstreamDataToCharOutputStreamImp.

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