Abstract base class from which all data output stream implementation classes must derive. More...
#include <rw/stream/RWDataOutputStreamImp.h>
Public Member Functions | |
virtual | ~RWDataOutputStreamImp () |
virtual RWDataOutputStream | acquire () |
virtual void | putBool (bool value)=0 |
virtual void | putBools (const bool *arrayPt, RWSize count)=0 |
virtual void | putChar (char value)=0 |
virtual void | putCharacter (char value)=0 |
virtual void | putChars (const char *arrayPt, RWSize count)=0 |
virtual void | putDouble (double value)=0 |
virtual void | putDoubles (const double *arrayPt, RWSize count)=0 |
virtual void | putFloat (float value)=0 |
virtual void | putFloats (const float *arrayPt, RWSize count)=0 |
virtual void | putInt (int value)=0 |
virtual void | putInts (const int *arrayPt, RWSize count)=0 |
virtual void | putLong (long value)=0 |
virtual void | putLongDouble (long double value)=0 |
virtual void | putLongDoubles (const long double *arrayPt, RWSize count)=0 |
virtual void | putLongLong (long long value)=0 |
virtual void | putLongLongs (const long long *arrayPt, RWSize count)=0 |
virtual void | putLongs (const long *arrayPt, RWSize count)=0 |
virtual void | putShort (short value)=0 |
virtual void | putShorts (const short *arrayPt, RWSize count)=0 |
virtual void | putSignedChar (signed char value)=0 |
virtual void | putSignedChars (const signed char *arrayPt, RWSize count)=0 |
virtual void | putString (const char *string, RWSize count)=0 |
virtual void | putUCharacter (RWUChar value)=0 |
virtual void | putUnsignedChar (unsigned char value)=0 |
virtual void | putUnsignedChars (const unsigned char *arrayPt, RWSize count)=0 |
virtual void | putUnsignedInt (unsigned int value)=0 |
virtual void | putUnsignedInts (const unsigned int *arrayPt, RWSize count)=0 |
virtual void | putUnsignedLong (unsigned long value)=0 |
virtual void | putUnsignedLongs (const unsigned long *arrayPt, RWSize count)=0 |
virtual void | putUnsignedShort (unsigned short value)=0 |
virtual void | putUnsignedShorts (const unsigned short *arrayPt, RWSize count)=0 |
virtual void | putUString (const RWUChar *ustring, RWSize count)=0 |
virtual void | putWchar_t (wchar_t value)=0 |
virtual void | putWchar_ts (const wchar_t *arrayPt, RWSize count)=0 |
virtual void | putWCharacter (wchar_t value)=0 |
virtual void | putWString (const wchar_t *wstring, RWSize count)=0 |
virtual void | release () |
Public Member Functions inherited from RWOutputStreamImp | |
virtual | ~RWOutputStreamImp () |
virtual void | close () |
virtual void | flush ()=0 |
Public Member Functions inherited from RWStreamImp | |
virtual | ~RWStreamImp () |
virtual bool | isBad () const =0 |
virtual bool | isFail () const =0 |
virtual bool | isGood () const =0 |
Additional Inherited Members | |
Protected Types inherited from RWTCountingBody< RWMutexLock > | |
typedef RWTLockGuard< RWTMonitor< RWMutexLock > > | LockGuard |
typedef RWTTryLockGuard< RWTMonitor< RWMutexLock > > | TryLockGuard |
typedef RWTUnlockGuard< RWTMonitor< RWMutexLock > > | UnlockGuard |
Protected Types inherited from RWTMonitor< RWMutexLock > | |
typedef RWTLockGuard< RWTMonitor< RWMutexLock > > | LockGuard |
typedef RWTTryLockGuard< RWTMonitor< RWMutexLock > > | TryLockGuard |
typedef RWTUnlockGuard< RWTMonitor< RWMutexLock > > | UnlockGuard |
Abstract base class for all the data output stream implementation classes. Implements the body idiom from the handle-body pattern.
|
inlinevirtual |
Destructor.
|
inlineprotected |
Constructor. Throws no exceptions.
|
virtual |
Acquires the synchronization mechanism provided by a stream concrete implementation. The acquire member function returns a handle to the data stream that should be used for output operation after acquiring the synchronization mechanism.
Reimplemented in RWSynchronizedDataOutputStreamImp.
|
pure virtual |
Writes a bool
value to the stream.
value | The bool value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of bool
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes a char
value to the stream.
value | The char value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes a narrow character to the stream.
value | The narrow character to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of char
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes a double
value to the stream.
value | The double value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of double
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes a float
value to the stream.
value | The float value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of float
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an int
value to the stream.
value | The int value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of int
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes a long
value to the stream.
value | The long value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes a long double
value to the stream.
value | The long double value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of long double
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes a long long
value to the stream.
value | The long long value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of long long
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of long
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes a short
value to the stream.
value | The short value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of short
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes a signed char
value to the stream.
value | The signed char value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of signed char
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes a narrow character string, including embedded nulls, starting at string to the stream.
string | A pointer to the narrow string's first character. |
count | The number of narrow characters to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWFilteredDataOutputStreamImp, RWNativeDataToByteOutputStreamImp, RWObjectOutputStreamImp, and RWCompactObjectOutputStreamImp.
|
pure virtual |
Writes a UTF-16 character to the stream.
value | The UTF-16 character to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an unsigned char
value to the stream.
value | The unsigned char value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of unsigned char
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an unsigned int
value to the stream.
value | The unsigned int value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of unsigned int
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an unsigned long
value to the stream.
value | The unsigned long value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of unsigned long
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an unsigned short
value to the stream.
value | The unsigned short value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of unsigned short
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes a UTF-16 character string, including embedded nulls, starting at ustring to the stream.
ustring | A pointer to the string's first UTF-16 character. |
count | The number of UTF-16 characters to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWXmlObjectOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWNativeDataToByteOutputStreamImp, RWObjectOutputStreamImp, and RWCompactObjectOutputStreamImp.
|
pure virtual |
Writes a wchar_t
value to the stream.
value | The wchar_t value to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes an array of wchar_t
values to the stream.
arrayPt | A pointer to the array's first element. |
count | The number of elements to be written to the stream. |
Implemented in RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes a wide character to the stream.
value | The wide character to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWFilteredDataOutputStreamImp, and RWNativeDataToByteOutputStreamImp.
|
pure virtual |
Writes a wide character string, including embedded nulls, starting at wstring to the stream.
wstring | A pointer to the string's first wide character. |
count | The number of wide characters to be written to the stream. |
Implemented in RWXmlObjectOutputStreamImp, RWDataToVirtualOutputStreamImp, RWOstreamDataToCharOutputStreamImp, RWSynchronizedDataOutputStreamImp, RWEnhancedXmlObjectOutputStreamImp, RWFilteredDataOutputStreamImp, RWNativeDataToByteOutputStreamImp, RWObjectOutputStreamImp, and RWCompactObjectOutputStreamImp.
|
inlinevirtual |
Releases the synchronization mechanism provided by a stream concrete implementation.
Reimplemented in RWSynchronizedDataOutputStreamImp.
Copyright © 2021 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |