Tools.h++ Manual
8-2 104011 Tandem Computers Incorporated
8
The Tools.h++ “virtual streams” overcomes these limitations by offering an 
idealized model of a stream. No assumptions are made about formatting, or 
stream models. At the bottom of the virtual streams class hierarchy is class 
RWvios
. This is an abstract base class with an interface very similar to the 
standard library class 
ios
:
Specializing versions of 
RWvios 
will supply definitions for these functions.
class RWvios
{
public:
virtual int eof() = 0;
virtual int fail() = 0;
virtual int bad() = 0;
virtual int good() = 0;
virtual int rdstate() = 0;
virtual int clear(int v = 0) = 0;
};










