rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWvostreamToDataOutputStream Class Reference
[Streams]

Adaptor class that adapts the Rogue Wave virtual stream interface to the Rogue Wave data output stream interface. More...

#include <rw/stream/RWvostreamToDataOutputStream.h>

Inheritance diagram for RWvostreamToDataOutputStream:
RWvostream RWvios

List of all members.

Public Member Functions

 RWvostreamToDataOutputStream (const RWDataOutputStream &sinkStream)
virtual ~RWvostreamToDataOutputStream ()
virtual int eof ()
virtual int fail ()
virtual int bad ()
virtual int good ()
virtual int rdstate ()
virtual void clear (int v=0)
virtual RWvostreamputString (const char *string, size_t count)
virtual RWvostreamoperator<< (const char *string)
virtual RWvostreamoperator<< (char value)
virtual RWvostreamoperator<< (wchar_t value)
virtual RWvostreamoperator<< (unsigned char value)
virtual RWvostreamoperator<< (double value)
virtual RWvostreamoperator<< (float value)
virtual RWvostreamoperator<< (int value)
virtual RWvostreamoperator<< (unsigned int value)
virtual RWvostreamoperator<< (long value)
virtual RWvostreamoperator<< (unsigned long value)
virtual RWvostreamoperator<< (short value)
virtual RWvostreamoperator<< (unsigned short value)
virtual RWvostreamoperator<< (long double value)
virtual RWvostreamoperator<< (long long value)
virtual RWvostreamoperator<< (unsigned long long value)
virtual RWvostreamflush ()
virtual RWvostreamput (char value)
virtual RWvostreamput (unsigned char value)
virtual RWvostreamput (wchar_t value)
virtual RWvostreamput (bool value)
virtual RWvostreamput (const char *arrayPt, size_t count)
virtual RWvostreamput (const bool *arrayPt, size_t count)
virtual RWvostreamput (const wchar_t *arrayPt, size_t count)
virtual RWvostreamput (const unsigned char *arrayPt, size_t count)
virtual RWvostreamput (const short *arrayPt, size_t count)
virtual RWvostreamput (const unsigned short *arrayPt, size_t count)
virtual RWvostreamput (const int *arrayPt, size_t count)
virtual RWvostreamput (const unsigned int *arrayPt, size_t count)
virtual RWvostreamput (const long *arrayPt, size_t count)
virtual RWvostreamput (const unsigned long *arrayPt, size_t count)
virtual RWvostreamput (const float *arrayPt, size_t count)
virtual RWvostreamput (const double *arrayPt, size_t count)
virtual RWvostreamput (const long double *arrayPt, size_t count)
virtual RWvostreamput (const long long *arrayPt, size_t count)
virtual RWvostreamput (const unsigned long long *arrayPt, size_t count)
virtual RWvostreamputSizeT (size_t)

Protected Member Functions

RWDataOutputStreamgetSinkStream ()
const RWDataOutputStreamgetSinkStream () const

Detailed Description

The class RWvostreamToDataOutputStream is an adaptor class that adapts the Rogue Wave virtual stream interface to the new Rogue Wave data output stream interface. Requests made through the Rogue Wave virtual output stream interface are forwarded to the embedded RWDataOutputStream handle.


Constructor & Destructor Documentation

RWvostreamToDataOutputStream::RWvostreamToDataOutputStream ( const RWDataOutputStream sinkStream  )  [inline]

Initializes the reference to the data stream that will be used as the sink of data.

Parameters:
sinkStream The data stream that will serve as the sink of data.
virtual RWvostreamToDataOutputStream::~RWvostreamToDataOutputStream (  )  [virtual]

Destructor.


Member Function Documentation

virtual int RWvostreamToDataOutputStream::bad (  )  [virtual]

Forward to the isBad() function of the embedded data stream. Throws no exceptions.

Implements RWvostream.

virtual void RWvostreamToDataOutputStream::clear ( int  v = 0  )  [virtual]

Not meaningful for data output stream. This function does nothing. Throws no exceptions.

Implements RWvostream.

virtual int RWvostreamToDataOutputStream::eof (  )  [virtual]

Not meaningful for data output stream. This function always returns 0. Throws no exceptions.

Implements RWvostream.

virtual int RWvostreamToDataOutputStream::fail (  )  [virtual]

Forward to the isFail() function of the embedded data stream. Throws no exceptions.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::flush (  )  [virtual]

Forwards the flush() request to the embedded data stream.

Implements RWvostream.

const RWDataOutputStream& RWvostreamToDataOutputStream::getSinkStream (  )  const [inline, protected]

Returns a handle to the embedded data output stream that is used as the sink of data. Throws no exceptions.

RWDataOutputStream& RWvostreamToDataOutputStream::getSinkStream (  )  [inline, protected]

Returns a handle to the embedded data output stream that is used as the sink of data. Throws no exceptions.

virtual int RWvostreamToDataOutputStream::good (  )  [virtual]

Forward to the isGood() function of the embedded data stream. Throws no exceptions.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( unsigned long long  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( long long  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( long double  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( unsigned short  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( short  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( unsigned long  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( long  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( unsigned int  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( int  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( float  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( double  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( unsigned char  value  )  [virtual]

Writes an unsigned char value to the embedded data stream as a narrow character.

Parameters:
value The unsigned char value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( wchar_t  value  )  [virtual]

Writes a wide character to the embedded data stream.

Parameters:
value The wide character to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( char  value  )  [virtual]

Writes a narrow character to the embedded data stream.

Parameters:
value The narrow character to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::operator<< ( const char *  string  )  [virtual]

Writes a null terminated narrow character string to the embedded data stream.

Parameters:
string A pointer to the string's first element.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const unsigned long long *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const long long *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const long double *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const double *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const float *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const unsigned long *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const long *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const unsigned int *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const int *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const unsigned short *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const short *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const unsigned char *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const wchar_t *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const bool *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( const char *  arrayPt,
size_t  count 
) [virtual]

Writes an array of values to the embedded data stream.

Parameters:
arrayPt A pointer to the array's first element.
count The number of elements to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( bool  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( wchar_t  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( unsigned char  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::put ( char  value  )  [virtual]

Writes a value to the embedded data stream.

Parameters:
value The value to be written.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::putSizeT ( size_t  sz  )  [virtual]

Stores the size_t sz to the output stream.

Implements RWvostream.

virtual RWvostream& RWvostreamToDataOutputStream::putString ( const char *  string,
size_t  count 
) [virtual]

Writes a narrow character string to the embedded data stream.

Parameters:
string A pointer to the string's first element.
count The number of elements to be written.

Implements RWvostream.

virtual int RWvostreamToDataOutputStream::rdstate (  )  [virtual]

Returns the value of the stream state variable as defined in iostreams. Throws no exceptions.

Implements RWvostream.

 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.