Module: Advanced Tools Package: Streams
RWDataOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase
#include <rw/stream/RWDataOutputStreamImp.h>
Abstract base class for all the data output stream implementation classes. Implements the body idiom from the handle-body pattern.
RWDataOutputStreamImp();
Constructor. Throws no exceptions.
virtual ~RWDataOutputStreamImp();
Destructor.
virtual RWDataOutputStream acquire();
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.
virtual void putBools(const bool* arrayPt, RWSize count) =0; virtual void putChars(const char* arrayPt, RWSize count) =0; virtual void putDoubles(const double* arrayPt, RWSize count) =0; virtual void putFloats(const float* arrayPt, RWSize count) =0; virtual void putInts(const int* arrayPt, RWSize count) =0; virtual void putLongDoubles(const long double* arrayPt, RWSize count) =0; virtual void putLongLongs(const long long* arrayPt, RWSize count) =0; virtual void putLongs(const long* arrayPt, RWSize count) =0; virtual void putShorts(const short* arrayPt, RWSize count) =0; virtual void putSignedChars(const signed char* arrayPt, RWSize count) =0; virtual void putUnsignedChars(const unsigned char* arrayPt, RWSize count) =0; virtual void putUnsignedInts(const unsigned int* arrayPt, RWSize count) =0; virtual void putUnsignedLongs(const unsigned long* arrayPt, RWSize count) =0; virtual void putUnsignedShorts(const unsigned short* arrayPt, RWSize count) =0; virtual void putWchar_ts(const wchar_t* arrayPt, RWSize count) =0;
These functions write an array of values to the stream.
Parameter List
arrayPt |
A pointer to the array's first element. |
count |
The number of elements to be written to the stream. |
virtual void putBool(bool value) =0; virtual void putChar(char value) =0; virtual void putDouble(double value) =0; virtual void putFloat(float value) =0; virtual void putInt(int value) =0; virtual void putLongDouble(long double value) =0; virtual void putLongLong(long long value) =0; virtual void putLong(long value) =0; virtual void putShort(short value) =0; virtual void putSignedChar(signed char value) =0; virtual void putUnsignedChar(unsigned char value) =0; virtual void putUnsignedInt(unsigned int value) =0; virtual void putUnsignedLong(unsigned long value) =0; virtual void putUnsignedShort(unsigned short value) =0; virtual void putWchar_t(wchar_t value) =0;
These functions write a value to the stream.
Parameter List
value |
The value to be written to the stream. |
virtual void putCharacter(char value) =0;
Writes a narrow character to the stream.
Parameter List
value |
The narrow character to be written to the stream. |
virtual void putString(const char* string, RWSize count) =0;
Writes a narrow character string, including embedded nulls, starting at string to the stream.
Parameter List
string |
A pointer to the narrow string's first character. |
count |
The number of narrow characters to be written to the stream. |
virtual void putUCharacter(RWUChar value) =0;
Writes a UTF-16 character to the stream.
Parameter List
value |
The UTF-16 character to be written to the stream. |
virtual void putUString(const RWUChar* ustring, RWSize count) =0;
Writes a UTF-16 character string, including embedded nulls, starting at ustring to the stream.
Parameter List
ustring |
A pointer to the string's first UTF-16 character. |
count |
The number of UTF-16 characters to be written to the stream. |
virtual void putWCharacter(wchar_t value) =0;
Writes a wide character to the stream.
Parameter List
value |
The wide character to be written to the stream. |
virtual void putWString(const wchar_t* wstring, RWSize count) =0;
Writes a wide character string, including embedded nulls, starting at wstring to the stream.
Parameter List
wstring |
A pointer to the string's first wide character. |
count |
The number of wide characters to be written to the stream. |
virtual void release();
Releases the synchronization mechanism provided by a stream concrete implementation.
© 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.