rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWChainedWCharArrayOutputStreamImp Class Reference
[Streams]

Concrete class implementing the wide character array output stream interface. More...

#include <rw/stream/RWChainedWCharArrayOutputStreamImp.h>

Inheritance diagram for RWChainedWCharArrayOutputStreamImp:
RWWCharArrayOutputStreamImp RWWCharOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase RWTCountingBody< RWMutexLock > RWTMonitor< RWMutexLock >

List of all members.

Public Member Functions

virtual ~RWChainedWCharArrayOutputStreamImp ()
virtual wchar_t * getWCharacterArray ()
virtual RWSize getWCharacterArraySize () const
virtual void clear ()
virtual void close ()
virtual void flush ()
virtual bool isBad () const
virtual bool isFail () const
virtual bool isGood () const
virtual void write (wchar_t wcharValue)
virtual void write (const wchar_t *wcharArray, RWSize numWChars)

Static Public Member Functions

static RWWCharArrayOutputStream make ()

Protected Member Functions

 RWChainedWCharArrayOutputStreamImp ()
RWChainedMemoryStreambufgetSinkBuff ()
const RWChainedMemoryStreambufgetSinkBuff () const

Detailed Description

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.


Constructor & Destructor Documentation

virtual RWChainedWCharArrayOutputStreamImp::~RWChainedWCharArrayOutputStreamImp (  )  [virtual]

Destructor.

RWChainedWCharArrayOutputStreamImp::RWChainedWCharArrayOutputStreamImp (  )  [inline, protected]

Constructor.


Member Function Documentation

virtual void RWChainedWCharArrayOutputStreamImp::clear (  )  [virtual]

Reset the underlying buffer.

Implements RWWCharArrayOutputStreamImp.

virtual void RWChainedWCharArrayOutputStreamImp::close (  )  [virtual]

This function calls flush().

Reimplemented from RWOutputStreamImp.

virtual void RWChainedWCharArrayOutputStreamImp::flush (  )  [virtual]

Forward the flush request to the internal RWChainedMemoryStreambuf object.

Implements RWOutputStreamImp.

const RWChainedMemoryStreambuf& RWChainedWCharArrayOutputStreamImp::getSinkBuff (  )  const [inline, protected]

Returns a reference to the RWChainedMemoryStreambuf, which is used as the sink of wide characters.

RWChainedMemoryStreambuf& RWChainedWCharArrayOutputStreamImp::getSinkBuff (  )  [inline, protected]

Returns a reference to the RWChainedMemoryStreambuf, which is used as the sink of wide characters.

virtual wchar_t* RWChainedWCharArrayOutputStreamImp::getWCharacterArray (  )  [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 RWSize RWChainedWCharArrayOutputStreamImp::getWCharacterArraySize (  )  const [virtual]

Returns the size of the wide character array that would be returned by a call to function getWCharacterArray().

Implements RWWCharArrayOutputStreamImp.

virtual bool RWChainedWCharArrayOutputStreamImp::isBad (  )  const [virtual]

Return true if the last operation performed on the internal RWChainedMemoryStreambuf object failed.

Implements RWStreamImp.

virtual bool RWChainedWCharArrayOutputStreamImp::isFail (  )  const [virtual]

Return true if the last operation performed on the internal RWChainedMemoryStreambuf object failed.

Implements RWStreamImp.

virtual bool RWChainedWCharArrayOutputStreamImp::isGood (  )  const [virtual]

Returns true if the last operation performed on the internal RWChainedMemoryStreambuf object succeeded.

Implements RWStreamImp.

static RWWCharArrayOutputStream RWChainedWCharArrayOutputStreamImp::make ( void   )  [inline, static]

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 void RWChainedWCharArrayOutputStreamImp::write ( const wchar_t *  wcharArray,
RWSize  numWChars 
) [virtual]

Writes an array of wide characters to the stream. Throws exception RWIncompleteStreamOperation.

Parameters:
wcharArray A pointer to the first element of the array.
numWChars The number of wide characters to be written.

Implements RWWCharOutputStreamImp.

virtual void RWChainedWCharArrayOutputStreamImp::write ( wchar_t  wcharValue  )  [virtual]

Writes a single wide character to the stream. Throws exception RWIncompleteStreamOperation.

Parameters:
wcharValue The wide character to be written.

Implements RWWCharOutputStreamImp.

 All Classes Functions Variables Typedefs Enumerations Enumerator Friends

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.