Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide

RWeostream

Module:  Essential Tools Module   Group:  Virtual Stream


...ios RWeostream ... ...RWbostreamRWvostreamRWvios

Local Index

Members

Synopsis

#include <rw/estream.h>
// Construct an RWeostream that uses cout's streambuf,
// and writes out values in little-endian format:
RWeostream estr(std::cout, RWeostream::LittleEndian);

Description

Class RWeostream specializes the base class RWbostream to store values in a portable binary format. The results can be restored via its counterpart, RWeistream.

See the entry for RWeistream for a general description of the endian stream classes.

Persistence

None.

Example

See RWeistream for an example of how the file "data.dat" might be read.

Enumeration

enum RWeostream::Endian { LittleEndian,
                          BigEndian, 
                          HostEndian }

Public Constructors

RWeostream(streambuf* s, Endian fmt = HostEndian);
RWeostream(ostream& str, Endian fmt = HostEndian);

Public Member Functions

virtual RWvostream&
flush();
virtual RWvostream&
operator<<(const char* s);
virtual RWvostream&
operator<<(char c);
virtual RWvostream&
operator<<(wchar_t wc);
virtual RWvostream&
operator<<(unsigned char c);
virtual RWvostream&
operator<<(double d);
virtual RWvostream&
operator<<(long double d);
virtual RWvostream&
operator<<(float f);
virtual RWvostream&
operator<<(int i);
virtual RWvostream&
operator<<(unsigned int i);
virtual RWvostream&
operator<<(long l);
virtual RWvostream&
operator<<(long long l);
virtual RWvostream&
operator<<(unsigned long l);
virtual RWvostream&
operator<<(unsigned long long l);
virtual RWvostream&
operator<<(short s);
virtual RWvostream&
operator<<(unsigned short s);
virtual RWvostream&
put(char c);
virtual RWvostream&
put(unsigned char c);
virtual RWvostream&
put(const char* p, size_t N);
virtual RWvostream&
put(wchar_t wc);
virtual RWvostream&
put(const wchar_t* p, size_t N);
virtual RWvostream&
put(const unsigned char* p, size_t N);
virtual RWvostream&
put(const short* p, size_t N);
virtual RWvostream&
put(const unsigned short* p, size_t N);
virtual RWvostream&
put(const int* p, size_t N);
virtual RWvostream&
put(const unsigned int* p, size_t N);
virtual RWvostream&
put(const long* p, size_t N);
irtual RWvostream&
put(const long long* p, size_t N);

NOTE -- This operator function is only available if your compiler supports the long long type.
virtual RWvostream&
put(const unsigned long* p, size_t N);
irtual RWvostream&
put(const unsigned long long* p, size_t N);

NOTE -- This operator function is only available if your compiler supports the unsigned long long type.
virtual RWvostream&
put(const float* p, size_t N);
virtual RWvostream&
put(const double* p, size_t N);
irtual RWvostream&
put(const long double* p, size_t N);
virtual RWvostream&
putString(const char*s, size_t N);


Previous fileTop of DocumentContentsIndex pageNext file

©2004 Copyright Quovadx, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Quovadx, 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.