Concrete class implementing the narrow character array output stream interface. More...
#include <rw/stream/RWChainedCharArrayOutputStreamImp.h>
Public Member Functions | |
virtual | ~RWChainedCharArrayOutputStreamImp () |
virtual void | clear () |
virtual void | close () |
virtual void | flush () |
virtual char * | getCharacterArray () |
virtual RWSize | getCharacterArraySize () const |
virtual RWCString | getString () |
virtual bool | isBad () const |
virtual bool | isFail () const |
virtual bool | isGood () const |
virtual void | write (char charValue) |
virtual void | write (const char *charArray, RWSize numChars) |
Public Member Functions inherited from RWCharArrayOutputStreamImp | |
virtual | ~RWCharArrayOutputStreamImp () |
Public Member Functions inherited from RWCharOutputStreamImp | |
virtual | ~RWCharOutputStreamImp () |
virtual RWCharOutputStream | acquire () |
virtual void | release () |
Public Member Functions inherited from RWOutputStreamImp | |
virtual | ~RWOutputStreamImp () |
Public Member Functions inherited from RWStreamImp | |
virtual | ~RWStreamImp () |
Static Public Member Functions | |
static RWCharArrayOutputStream | make () |
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 |
Concrete class implementing the narrow character array output stream interface. Characters inserted into an instance of class RWChainedCharArrayOutputStreamImp are stored in memory using an instance of class RWChainedMemoryStreambuf. Implements the body idiom from the handle-body pattern.
|
virtual |
Destructor.
|
inlineprotected |
Constructor.
|
virtual |
Resets the underlying buffer.
Implements RWCharArrayOutputStreamImp.
|
virtual |
This function calls flush().
Reimplemented from RWOutputStreamImp.
|
virtual |
Forwards the flush() request to the internal RWChainedMemoryStreambuf object.
Implements RWOutputStreamImp.
|
virtual |
Returns a pointer to an array of narrow characters containing the characters inserted into the stream since its creation, or since the last invocation of function getCharacterArray(), or function clear(). Users are responsible for freeing the memory associated with the array returned by this function using operator delete[]
Implements RWCharArrayOutputStreamImp.
|
virtual |
Returns the size of the narrow character array that would be returned by a call to function getCharacterArray().
Implements RWCharArrayOutputStreamImp.
|
inlineprotected |
Returns a reference to the RWChainedMemoryStreambuf, which is used as the sink of bytes.
|
inlineprotected |
Returns a reference to the RWChainedMemoryStreambuf, which is used as the sink of bytes.
|
virtual |
Returns a narrow character string object containing the characters inserted into the stream since its creation.
Implements RWCharArrayOutputStreamImp.
|
virtual |
Returns true
if the last operation performed on the internal RWChainedMemoryStreambuf object failed. Throws no exceptions.
Implements RWStreamImp.
|
virtual |
Returns true
if the last operation performed on the external RWChainedMemoryStreambuf object failed
Implements RWStreamImp.
|
virtual |
Returns true
if the last operation performed on the internal RWChainedMemoryStreambuf object succeeded.
Implements RWStreamImp.
|
inlinestatic |
Constructs an RWChainedCharArrayOutputStreamImp instance that uses an instance of class RWChainedMemoryStreambuf to store narrow characters. The function returns a handle to the implementation class.
|
virtual |
Writes a single narrow character to the stream.
charValue | The narrow character to be written to the stream. |
Implements RWCharOutputStreamImp.
|
virtual |
Writes an array of narrow characters to the stream.
charArray | A pointer to the first element of the array. |
numChars | The number of narrow characters to be written to the stream. |
Implements RWCharOutputStreamImp.
Copyright © 2021 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |