rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWCharArrayOutputStreamImp Class Reference
[Streams]

Abstract base class for narrow character output streams that allow retrieval of their inserted data as a character array. More...

#include <rw/stream/RWCharArrayOutputStreamImp.h>

Inheritance diagram for RWCharArrayOutputStreamImp:
RWCharOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase RWTCountingBody< RWMutexLock > RWTMonitor< RWMutexLock > RWChainedCharArrayOutputStreamImp

List of all members.

Public Member Functions

virtual ~RWCharArrayOutputStreamImp ()
virtual char * getCharacterArray ()=0
virtual RWCString getString ()=0
virtual RWSize getCharacterArraySize () const =0
virtual void clear ()=0

Protected Member Functions

 RWCharArrayOutputStreamImp ()

Detailed Description

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


Constructor & Destructor Documentation

virtual RWCharArrayOutputStreamImp::~RWCharArrayOutputStreamImp (  )  [inline, virtual]

Destructor.

RWCharArrayOutputStreamImp::RWCharArrayOutputStreamImp (  )  [inline, protected]

Constructor.


Member Function Documentation

virtual void RWCharArrayOutputStreamImp::clear (  )  [pure virtual]

Resets the underlying buffer.

Implemented in RWChainedCharArrayOutputStreamImp.

virtual char* RWCharArrayOutputStreamImp::getCharacterArray (  )  [pure virtual]

Returns a pointer to an array of narrow characters containing the 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[].

Implemented in RWChainedCharArrayOutputStreamImp.

virtual RWSize RWCharArrayOutputStreamImp::getCharacterArraySize (  )  const [pure virtual]

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

Implemented in RWChainedCharArrayOutputStreamImp.

virtual RWCString RWCharArrayOutputStreamImp::getString (  )  [pure virtual]

Returns a narrow character string object containing the characters inserted into the stream since its creation.

Implemented in RWChainedCharArrayOutputStreamImp.

 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.