SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Adaptor class that adapts the Rogue Wave virtual stream interface to the Rogue Wave data output stream interface. More...
#include <rw/stream/RWvostreamToDataOutputStream.h>
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 RWvostream & | putString (const char *string, size_t count) |
virtual RWvostream & | operator<< (const char *string) |
virtual RWvostream & | operator<< (char value) |
virtual RWvostream & | operator<< (wchar_t value) |
virtual RWvostream & | operator<< (unsigned char value) |
virtual RWvostream & | operator<< (double value) |
virtual RWvostream & | operator<< (float value) |
virtual RWvostream & | operator<< (int value) |
virtual RWvostream & | operator<< (unsigned int value) |
virtual RWvostream & | operator<< (long value) |
virtual RWvostream & | operator<< (unsigned long value) |
virtual RWvostream & | operator<< (short value) |
virtual RWvostream & | operator<< (unsigned short value) |
virtual RWvostream & | operator<< (long double value) |
virtual RWvostream & | operator<< (long long value) |
virtual RWvostream & | operator<< (unsigned long long value) |
virtual RWvostream & | flush () |
virtual RWvostream & | put (char value) |
virtual RWvostream & | put (unsigned char value) |
virtual RWvostream & | put (wchar_t value) |
virtual RWvostream & | put (bool value) |
virtual RWvostream & | put (const char *arrayPt, size_t count) |
virtual RWvostream & | put (const bool *arrayPt, size_t count) |
virtual RWvostream & | put (const wchar_t *arrayPt, size_t count) |
virtual RWvostream & | put (const unsigned char *arrayPt, size_t count) |
virtual RWvostream & | put (const short *arrayPt, size_t count) |
virtual RWvostream & | put (const unsigned short *arrayPt, size_t count) |
virtual RWvostream & | put (const int *arrayPt, size_t count) |
virtual RWvostream & | put (const unsigned int *arrayPt, size_t count) |
virtual RWvostream & | put (const long *arrayPt, size_t count) |
virtual RWvostream & | put (const unsigned long *arrayPt, size_t count) |
virtual RWvostream & | put (const float *arrayPt, size_t count) |
virtual RWvostream & | put (const double *arrayPt, size_t count) |
virtual RWvostream & | put (const long double *arrayPt, size_t count) |
virtual RWvostream & | put (const long long *arrayPt, size_t count) |
virtual RWvostream & | put (const unsigned long long *arrayPt, size_t count) |
virtual RWvostream & | putSizeT (size_t) |
Protected Member Functions | |
RWDataOutputStream & | getSinkStream () |
const RWDataOutputStream & | getSinkStream () const |
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.
RWvostreamToDataOutputStream::RWvostreamToDataOutputStream | ( | const RWDataOutputStream & | sinkStream | ) | [inline] |
Initializes the reference to the data stream that will be used as the sink of data.
sinkStream | The data stream that will serve as the sink of data. |
virtual RWvostreamToDataOutputStream::~RWvostreamToDataOutputStream | ( | ) | [virtual] |
Destructor.
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.
value | The value to be written. |
Implements RWvostream.
virtual RWvostream& RWvostreamToDataOutputStream::operator<< | ( | long long | value | ) | [virtual] |
Writes a value to the embedded data stream.
value | The value to be written. |
Implements RWvostream.
virtual RWvostream& RWvostreamToDataOutputStream::operator<< | ( | long double | value | ) | [virtual] |
Writes a value to the embedded data stream.
value | The value to be written. |
Implements RWvostream.
virtual RWvostream& RWvostreamToDataOutputStream::operator<< | ( | unsigned short | value | ) | [virtual] |
Writes a value to the embedded data stream.
value | The value to be written. |
Implements RWvostream.
virtual RWvostream& RWvostreamToDataOutputStream::operator<< | ( | short | value | ) | [virtual] |
Writes a value to the embedded data stream.
value | The value to be written. |
Implements RWvostream.
virtual RWvostream& RWvostreamToDataOutputStream::operator<< | ( | unsigned long | value | ) | [virtual] |
Writes a value to the embedded data stream.
value | The value to be written. |
Implements RWvostream.
virtual RWvostream& RWvostreamToDataOutputStream::operator<< | ( | long | value | ) | [virtual] |
Writes a value to the embedded data stream.
value | The value to be written. |
Implements RWvostream.
virtual RWvostream& RWvostreamToDataOutputStream::operator<< | ( | unsigned int | value | ) | [virtual] |
Writes a value to the embedded data stream.
value | The value to be written. |
Implements RWvostream.
virtual RWvostream& RWvostreamToDataOutputStream::operator<< | ( | int | value | ) | [virtual] |
Writes a value to the embedded data stream.
value | The value to be written. |
Implements RWvostream.
virtual RWvostream& RWvostreamToDataOutputStream::operator<< | ( | float | value | ) | [virtual] |
Writes a value to the embedded data stream.
value | The value to be written. |
Implements RWvostream.
virtual RWvostream& RWvostreamToDataOutputStream::operator<< | ( | double | value | ) | [virtual] |
Writes a value to the embedded data stream.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
value | The value to be written. |
Implements RWvostream.
virtual RWvostream& RWvostreamToDataOutputStream::put | ( | wchar_t | value | ) | [virtual] |
Writes a value to the embedded data stream.
value | The value to be written. |
Implements RWvostream.
virtual RWvostream& RWvostreamToDataOutputStream::put | ( | unsigned char | value | ) | [virtual] |
Writes a value to the embedded data stream.
value | The value to be written. |
Implements RWvostream.
virtual RWvostream& RWvostreamToDataOutputStream::put | ( | char | value | ) | [virtual] |
Writes a value to the embedded data stream.
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.
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.
© 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.