SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Concrete class implementing the wide character array output stream interface. More...
#include <rw/stream/RWChainedWCharArrayOutputStreamImp.h>
Public Member Functions | |
virtual | ~RWChainedWCharArrayOutputStreamImp () |
virtual void | clear () |
virtual void | close () |
virtual void | flush () |
virtual wchar_t * | getWCharacterArray () |
virtual RWSize | getWCharacterArraySize () const |
virtual bool | isBad () const |
virtual bool | isFail () const |
virtual bool | isGood () const |
virtual void | write (const wchar_t *wcharArray, RWSize numWChars) |
virtual void | write (wchar_t wcharValue) |
Public Member Functions inherited from RWWCharArrayOutputStreamImp | |
virtual | ~RWWCharArrayOutputStreamImp () |
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 () |
Static Public Member Functions | |
static RWWCharArrayOutputStream | 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 wide character array output stream interface. Wide character inserted into an instance of class RWChainedWCharArrayOutputStreamImp are stored in memory using an instance of class RWChainedMemoryStreambuf. Implements the body idiom from the handle-body pattern.
|
virtual |
Destructor.
|
inlineprotected |
Constructor.
|
virtual |
Reset the underlying buffer.
Implements RWWCharArrayOutputStreamImp.
|
virtual |
This function calls flush().
Reimplemented from RWOutputStreamImp.
|
virtual |
Forward the flush request to the internal RWChainedMemoryStreambuf object.
Implements RWOutputStreamImp.
|
inlineprotected |
Returns a reference to the RWChainedMemoryStreambuf, which is used as the sink of wide characters.
|
inlineprotected |
Returns a reference to the RWChainedMemoryStreambuf, which is used as the sink of wide characters.
|
virtual |
Returns a pointer to an array of wide characters containing the wide characters inserted into the stream since its creation, or since the last invocation of function getWCharacterArray(), or function clear(). Users are responsible for freeing the memory associated with the array returned by this function, by using operator delete[]
.
Implements RWWCharArrayOutputStreamImp.
|
virtual |
Returns the size of the wide character array that would be returned by a call to function getWCharacterArray().
Implements RWWCharArrayOutputStreamImp.
|
virtual |
Return true
if the last operation performed on the internal RWChainedMemoryStreambuf object failed.
Implements RWStreamImp.
|
virtual |
Return true
if the last operation performed on the internal RWChainedMemoryStreambuf object failed.
Implements RWStreamImp.
|
virtual |
Returns true
if the last operation performed on the internal RWChainedMemoryStreambuf object succeeded.
Implements RWStreamImp.
|
inlinestatic |
Constructs an RWChainedWCharArrayOutputStreamImp instance that uses an instance of class RWChainedMemoryStreambuf to store wide characters. The function returns a handle to the implementation class.
|
virtual |
Writes an array of wide characters to the stream. Throws exception RWIncompleteStreamOperation.
wcharArray | A pointer to the first element of the array. |
numWChars | The number of wide characters to be written. |
Implements RWWCharOutputStreamImp.
|
virtual |
Writes a single wide character to the stream. Throws exception RWIncompleteStreamOperation.
wcharValue | The wide character to be written. |
Implements RWWCharOutputStreamImp.
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |