rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWUCharOutputStream Class Reference
[Streams]

Handle class for the Unicode character output stream implementation classes. More...

#include <rw/stream/RWUCharOutputStream.h>

Inheritance diagram for RWUCharOutputStream:
RWHandleBase RWUCharArrayOutputStream

List of all members.

Public Member Functions

 RWUCharOutputStream (RWUCharOutputStreamImp *body)
 RWUCharOutputStream (const RWUCharOutputStream &handle)
RWUCharOutputStreamoperator= (const RWUCharOutputStream &handle)
RWUCharOutputStreamoperator<< (RWUCharOutputStream &(*pf)(RWUCharOutputStream &))
RWUCharOutputStream operator<< (RWUCharOutputStream(*pf)(RWUCharOutputStream &))
RWUCharOutputStreamoperator<< (RWUChar unicodeValue)
void write (RWUChar unicodeValue)
void write (const RWUChar *unicodeArray, RWSize numUChars)
void close ()
void flush ()
bool isBad () const
bool isFail () const
bool isGood () const

Related Functions

(Note that these are not member functions.)



RWUCharOutputStreamrwFlush (RWUCharOutputStream &stream)
RWUCharOutputStreamrwEndl (RWUCharOutputStream &stream)
RWUCharOutputStreamrwEnds (RWUCharOutputStream &stream)

Detailed Description

Handle class for all the Unicode character output stream implementation classes. Implements the handle idiom from the handle-body pattern.


Constructor & Destructor Documentation

RWUCharOutputStream::RWUCharOutputStream ( RWUCharOutputStreamImp body  )  [inline, explicit]

Constructor.

RWUCharOutputStream::RWUCharOutputStream ( const RWUCharOutputStream handle  )  [inline]

Copy constructor.

Parameters:
handle A UTF-16 character stream handle used to initialize the newly created handle.

Member Function Documentation

void RWUCharOutputStream::close ( void   )  [inline]

Closes the stream.

void RWUCharOutputStream::flush ( void   )  [inline]

Flushes the stream.

bool RWUCharOutputStream::isBad (  )  const [inline]

Returns true to indicate a loss of integrity resulting from an output operation. Throws no exceptions.

bool RWUCharOutputStream::isFail (  )  const [inline]

Returns true to indicate that an output operation failed to generate the desired data. Throws no exceptions.

bool RWUCharOutputStream::isGood (  )  const [inline]

Returns true to indicate a stream in a valid state. Throws no exceptions.

RWUCharOutputStream& RWUCharOutputStream::operator<< ( RWUChar  unicodeValue  )  [inline]

Writes a single UTF-16 character to the stream.

Parameters:
unicodeValue The UTF-16 character to be written to the stream.
RWUCharOutputStream RWUCharOutputStream::operator<< ( RWUCharOutputStream(*)(RWUCharOutputStream &)  pf  )  [inline]

Inserter executing a manipulator function.

Parameters:
pf The manipulator's function pointer.
RWUCharOutputStream& RWUCharOutputStream::operator<< ( RWUCharOutputStream &(*)(RWUCharOutputStream &)  pf  )  [inline]

Inserter executing a manipulator function.

Parameters:
pf The manipulator's function pointer.
RWUCharOutputStream& RWUCharOutputStream::operator= ( const RWUCharOutputStream handle  )  [inline]

Assignment operator. Throws no exceptions.

Parameters:
handle A UTF-16 character stream handle used to initialize this handle.
void RWUCharOutputStream::write ( const RWUChar unicodeArray,
RWSize  numUChars 
) [inline]

Writes an array of UTF-16 characters to the stream.

Parameters:
unicodeArray A pointer to the first element of the array.
numUChars The number of UTF-16 characters to be written to the stream.
void RWUCharOutputStream::write ( RWUChar  unicodeValue  )  [inline]

Writes a single UTF-16 character to the stream.

Parameters:
unicodeValue The UTF-16 character to be written to the stream.

Friends And Related Function Documentation

RWUCharOutputStream & rwEndl ( RWUCharOutputStream stream  )  [related]

Manipulator that writes an end-of-line UTF-16 control character to the stream.

Parameters:
stream A UTF-16 character output stream.
RWUCharOutputStream & rwEnds ( RWUCharOutputStream stream  )  [related]

Manipulator that writes an end-of-string UTF-16 character to the stream.

Parameters:
stream A UTF-16 character output stream.
RWUCharOutputStream & rwFlush ( RWUCharOutputStream stream  )  [related]

Manipulator that flushes a UTF-16 character output stream.

Parameters:
stream The UTF-16 character stream to be flushed.
 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.