rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWWCharArrayOutputStream Class Reference
[Streams]

Handle class for wide character output streams that support an extended interface, allowing retrieval of inserted data as a wide character array. More...

#include <rw/stream/RWWCharArrayOutputStream.h>

Inheritance diagram for RWWCharArrayOutputStream:
RWWCharOutputStream RWHandleBase

List of all members.

Public Member Functions

 RWWCharArrayOutputStream (RWWCharArrayOutputStreamImp *body)
 RWWCharArrayOutputStream (const RWWCharArrayOutputStream &handle)
RWWCharArrayOutputStreamoperator= (const RWWCharArrayOutputStream &handle)
wchar_t * getWCharacterArray ()
RWSize getWCharacterArraySize () const
void clear ()

Detailed Description

Handle class for wide character output streams that support an extended interface that allows retrieval of their inserted data as a wide character array. Implements the handle idiom from the handle-body pattern.


Constructor & Destructor Documentation

RWWCharArrayOutputStream::RWWCharArrayOutputStream ( RWWCharArrayOutputStreamImp body  )  [inline, explicit]

Constructor.

Parameters:
body A pointer to an implementation class supporting the abstract interface RWWCharArrayOutputStreamImp.
RWWCharArrayOutputStream::RWWCharArrayOutputStream ( const RWWCharArrayOutputStream handle  )  [inline]

Copy constructor.

Parameters:
handle A wide character array stream handle used to initialize the newly created handle.

Member Function Documentation

void RWWCharArrayOutputStream::clear ( void   )  [inline]

Resets the underlying buffer.

wchar_t* RWWCharArrayOutputStream::getWCharacterArray (  )  [inline]

Returns a pointer to an array of wide characters containing the wide characters inserted into the stream since its creation. Users are responsible for freeing the memory associated with the array returned by this function using operator delete[].

RWSize RWWCharArrayOutputStream::getWCharacterArraySize (  )  const [inline]

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

RWWCharArrayOutputStream& RWWCharArrayOutputStream::operator= ( const RWWCharArrayOutputStream handle  )  [inline]

Assignment operator. Throws no exceptions.

Parameters:
handle A wide character array stream handle used to initialize this handle.
 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.