SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWStreamImp Class Referenceabstract

Abstract base class for all the stream implementation classes. More...

#include <rw/stream/RWStreamImp.h>

Inheritance diagram for RWStreamImp:
RWBodyBase RWTCountingBody< RWMutexLock > RWTMonitor< RWMutexLock > RWInputStreamImp RWOutputStreamImp RWByteInputStreamImp RWCharInputStreamImp RWDataInputStreamImp RWUCharInputStreamImp RWWCharInputStreamImp RWByteOutputStreamImp RWCharOutputStreamImp RWDataOutputStreamImp RWUCharOutputStreamImp RWWCharOutputStreamImp

Public Member Functions

virtual ~RWStreamImp ()
 
virtual void close ()=0
 
virtual bool isBad () const =0
 
virtual bool isFail () const =0
 
virtual bool isGood () const =0
 

Protected Member Functions

 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)
 

Private Member Functions

 RWStreamImp (const RWStreamImp &)
 
RWStreamImpoperator= (const RWStreamImp &)
 

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 stream implementation classes. Implements the body idiom from the handle-body pattern.

Constructor & Destructor Documentation

◆ ~RWStreamImp()

virtual RWStreamImp::~RWStreamImp ( )
inlinevirtual

Destructor.

◆ RWStreamImp() [1/2]

RWStreamImp::RWStreamImp ( )
inlineprotected

Constructor.

◆ RWStreamImp() [2/2]

RWStreamImp::RWStreamImp ( const RWStreamImp & )
private

Copy construction is not allowed.

Member Function Documentation

◆ close()

◆ isBad()

virtual bool RWStreamImp::isBad ( ) const
pure virtual

Returns true to indicate a loss of integrity resulting from an input or output operation, such as an irrecoverable read error from a file. Throws no exceptions.

Implemented in RWByteFromStreambufInputStreamImp, RWByteToStreambufOutputStreamImp, RWChainedByteArrayOutputStreamImp, RWChainedCharArrayOutputStreamImp, RWChainedUCharArrayOutputStreamImp, RWChainedWCharArrayOutputStreamImp, RWCharFromStreambufInputStreamImp, RWCharToStreambufOutputStreamImp, RWDataFromByteInputStreamImp, RWDataFromCharInputStreamImp, RWDataFromVirtualInputStreamImp, RWDataToByteOutputStreamImp, RWDataToCharOutputStreamImp, RWDataToVirtualOutputStreamImp, RWFilteredByteInputStreamImp, RWFilteredByteOutputStreamImp, RWFilteredCharInputStreamImp, RWFilteredCharOutputStreamImp, RWFilteredDataInputStreamImp, RWFilteredDataOutputStreamImp, RWFilteredUCharInputStreamImp, RWFilteredUCharOutputStreamImp, RWFilteredWCharInputStreamImp, RWFilteredWCharOutputStreamImp, RWIstreamDataFromCharInputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataInputStreamImp, RWSynchronizedDataOutputStreamImp, RWTInputStreamBufferImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWByteInputStream, RWFilteredByteInputStreamImp >, RWTInputStreamLockImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWUCharInputStream, RWFilteredUCharInputStreamImp >, RWTInputStreamLockImp< RWWCharInputStream, RWFilteredWCharInputStreamImp >, RWUCharFromByteInputStreamImp, RWUCharFromUTF8ByteInputStreamImp, RWUCharToByteOutputStreamImp, RWUCharToUTF8ByteOutputStreamImp, RWWCharFromWStreambufInputStreamImp, and RWWCharToWStreambufOutputStreamImp.

◆ isFail()

virtual bool RWStreamImp::isFail ( ) const
pure virtual

Returns true to indicate that an input operation failed to read the expected data, or that an output operation failed to generate the desired data. Throws no exceptions.

Implemented in RWByteFromStreambufInputStreamImp, RWByteToStreambufOutputStreamImp, RWChainedByteArrayOutputStreamImp, RWChainedCharArrayOutputStreamImp, RWChainedUCharArrayOutputStreamImp, RWChainedWCharArrayOutputStreamImp, RWCharFromStreambufInputStreamImp, RWCharToStreambufOutputStreamImp, RWDataFromByteInputStreamImp, RWDataFromCharInputStreamImp, RWDataFromVirtualInputStreamImp, RWDataToByteOutputStreamImp, RWDataToCharOutputStreamImp, RWDataToVirtualOutputStreamImp, RWFilteredByteInputStreamImp, RWFilteredByteOutputStreamImp, RWFilteredCharInputStreamImp, RWFilteredCharOutputStreamImp, RWFilteredDataInputStreamImp, RWFilteredDataOutputStreamImp, RWFilteredUCharInputStreamImp, RWFilteredUCharOutputStreamImp, RWFilteredWCharInputStreamImp, RWFilteredWCharOutputStreamImp, RWIstreamDataFromCharInputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataInputStreamImp, RWSynchronizedDataOutputStreamImp, RWTInputStreamBufferImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWByteInputStream, RWFilteredByteInputStreamImp >, RWTInputStreamLockImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWUCharInputStream, RWFilteredUCharInputStreamImp >, RWTInputStreamLockImp< RWWCharInputStream, RWFilteredWCharInputStreamImp >, RWUCharFromByteInputStreamImp, RWUCharFromUTF8ByteInputStreamImp, RWUCharToByteOutputStreamImp, RWUCharToUTF8ByteOutputStreamImp, RWWCharFromWStreambufInputStreamImp, and RWWCharToWStreambufOutputStreamImp.

◆ isGood()

virtual bool RWStreamImp::isGood ( ) const
pure virtual

Returns true to indicate a stream in a valid state. Throws no exceptions.

Implemented in RWByteFromStreambufInputStreamImp, RWByteToStreambufOutputStreamImp, RWChainedByteArrayOutputStreamImp, RWChainedCharArrayOutputStreamImp, RWChainedUCharArrayOutputStreamImp, RWChainedWCharArrayOutputStreamImp, RWCharFromStreambufInputStreamImp, RWCharToStreambufOutputStreamImp, RWDataFromByteInputStreamImp, RWDataFromCharInputStreamImp, RWDataFromVirtualInputStreamImp, RWDataToByteOutputStreamImp, RWDataToCharOutputStreamImp, RWDataToVirtualOutputStreamImp, RWFilteredByteInputStreamImp, RWFilteredByteOutputStreamImp, RWFilteredCharInputStreamImp, RWFilteredCharOutputStreamImp, RWFilteredDataInputStreamImp, RWFilteredDataOutputStreamImp, RWFilteredUCharInputStreamImp, RWFilteredUCharOutputStreamImp, RWFilteredWCharInputStreamImp, RWFilteredWCharOutputStreamImp, RWIstreamDataFromCharInputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataInputStreamImp, RWSynchronizedDataOutputStreamImp, RWTInputStreamBufferImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWByteInputStream, RWFilteredByteInputStreamImp >, RWTInputStreamLockImp< RWCharInputStream, RWFilteredCharInputStreamImp >, RWTInputStreamLockImp< RWUCharInputStream, RWFilteredUCharInputStreamImp >, RWTInputStreamLockImp< RWWCharInputStream, RWFilteredWCharInputStreamImp >, RWUCharFromByteInputStreamImp, RWUCharFromUTF8ByteInputStreamImp, RWUCharToByteOutputStreamImp, RWUCharToUTF8ByteOutputStreamImp, RWWCharFromWStreambufInputStreamImp, and RWWCharToWStreambufOutputStreamImp.

◆ operator=()

RWStreamImp & RWStreamImp::operator= ( const RWStreamImp & )
private

Assignment is not allowed.

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