Tools.h++ Class Reference

Table Of Contents
Example
See RWeostream for an example of how the file "data.dat" might be created.
Public Constructors
RWeistream(streambuf* s);
Construct an RWeistream from the streambuf s. For DOS, this streambuf must have been created in binary mode.
Throw exception RWStreamErr if not a valid endian stream.
RWeistream(istream& str);
Construct an RWeistream using the streambuf associated with the istream str. For DOS, the str must have been opened
in binary mode. Throw exception RWStreamErr if not a valid endian stream.
Public Member Functions
virtual int
get();
virtual RWvistream&
get(char& c);
virtual RWvistream&
get(unsigned char& c);
virtual RWvistream&
get(char* v, size_t N);
virtual RWvistream&
get(unsigned char* v, size_t N);
Inherited from class RWbistream.
virtual RWvistream&
get(wchar_t& wc);
Redefined from class RWbistream. Get the next wchar_t from the input stream and store it in wc, compensating for any
differences in size or endian format between the stream and the current environment. Set the failbit if the value in the
stream is too large to be stored in wc.
virtual RWvistream&
get(wchar_t* v, size_t N);
Redefined from class RWbistream. Get a vector of wchar_ts and store it in the array beginning at v, compensating for
any differences in size or endian format between the stream and the current environment. If the restore stops
prematurely, store whatever possible in v, and set the failbit. Also set the failbit if any values in the stream are too large
to be stored in an element of v.
virtual RWvistream&
get(double* v, size_t N);
Redefined from class RWbistream. Get a vector of doubles and store them in the array beginning at v, compensating for
any difference in endian format between the stream and the current environment. If the restore stops prematurely, store
whatever possible in v, and set the failbit.
virtual RWvistream&
get(float* v, size_t N);
Redefined from class RWbistream. Get a vector of floats and store them in the array beginning at v, compensating for
any difference in endian format between the stream and the current environment. If the restore stops prematurely, store
whatever possible in v, and set the failbit.
virtual RWvistream&
get(int* v, size_t N);
Redefined from class RWbistream. Get a vector of ints and store them in the array beginning at v, compensating for any
differences in size or endian format between the stream and the current environment. If the restore stops prematurely,