Tools.h++ Class Reference

Table Of Contents
Persistence
None
Example
#include <rw/vstream.h>
void restoreStuff( RWvistream& str) {
int i;
double d;
char string[80];
str >> i; // Restore an int
str >> d; // Restore a double
// Restore a character string, up to 80 characters long:
str.getString(string, sizeof(string));
if(str.fail()) cerr << "Oh, oh, bad news.\n";
}
Public Destructor
virtual ~RWvistream();
This virtual destructor allows specializing classes to deallocate any resources that they
may have allocated.
Public Operators
virtual RWvistream&
operator>>(char& c) = 0;
Get the next char from the input stream and store it in c.
virtual RWvistream&
operator>>(wchar_t& wc) = 0;
Get the next wchar_t from the input stream and store it in wc.
virtual RWvistream&
operator>>(double& d) = 0;
Get the next double from the input stream and store it in d.
virtual RWvistream&
operator>>(float& f) = 0;
Get the next float from the input stream and store it in f.
virtual RWvistream&