SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWDataToByteOutputStreamImp Class Reference

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

#include <rw/stream/RWDataToByteOutputStreamImp.h>

Inheritance diagram for RWDataToByteOutputStreamImp:
RWDataOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase RWTCountingBody< RWMutexLock > RWTMonitor< RWMutexLock > RWNativeDataToByteOutputStreamImp

Public Member Functions

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

 RWDataToByteOutputStreamImp (const RWByteOutputStream &sinkStream)
 
RWByteOutputStreamgetSinkStream ()
 
const RWByteOutputStreamgetSinkStream () 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 (const RWBodyBase &second)
 
 RWBodyBase (RWStaticCtor)
 
 RWBodyBase (void)
 
virtual ~RWBodyBase (void)
 
RWBodyBaseoperator= (const RWBodyBase &second)
 
- Protected Member Functions inherited from RWTCountingBody< RWMutexLock >
 RWTCountingBody (const RWTCountingBody< RWMutexLock > &second)
 
 RWTCountingBody (RWStaticCtor)
 
 RWTCountingBody (unsigned initCount=0)
 
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 (const RWTMonitor< RWMutexLock > &second)
 
 RWTMonitor (RWStaticCtor)
 
 RWTMonitor (void)
 
 ~RWTMonitor (void)
 
void acquire (void)
 
bool isAcquired (void) const
 
RWTMonitor< RWMutexLock > & monitor (void) const
 
RWMutexLockmutex (void)
 
RWTMonitor< RWMutexLock > & operator= (const RWTMonitor< RWMutexLock > &)
 
void release (void)
 
bool tryAcquire (void)
 

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 binary 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

◆ ~RWDataToByteOutputStreamImp()

virtual RWDataToByteOutputStreamImp::~RWDataToByteOutputStreamImp ( )
virtual

Destructor.

◆ RWDataToByteOutputStreamImp()

RWDataToByteOutputStreamImp::RWDataToByteOutputStreamImp ( const RWByteOutputStream & sinkStream)
inlineprotected

Used by derived classes to initialize the next processing stream.

Parameters
sinkStreamA handle to the next processing stream.

Member Function Documentation

◆ close()

virtual void RWDataToByteOutputStreamImp::close ( )
virtual

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

Reimplemented from RWOutputStreamImp.

◆ flush()

virtual void RWDataToByteOutputStreamImp::flush ( )
virtual

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

Implements RWOutputStreamImp.

◆ getSinkStream() [1/2]

RWByteOutputStream & RWDataToByteOutputStreamImp::getSinkStream ( )
inlineprotected

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

◆ getSinkStream() [2/2]

const RWByteOutputStream & RWDataToByteOutputStreamImp::getSinkStream ( ) const
inlineprotected

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

◆ isBad()

virtual bool RWDataToByteOutputStreamImp::isBad ( ) const
virtual

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

Implements RWStreamImp.

◆ isFail()

virtual bool RWDataToByteOutputStreamImp::isFail ( ) const
virtual

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

Implements RWStreamImp.

◆ isGood()

virtual bool RWDataToByteOutputStreamImp::isGood ( ) const
virtual

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

Implements RWStreamImp.

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