RWvios(3C++) RWvios(3C++)
NameRWvios - Rogue Wave library class
Synopsis
#include <vstream.h>
(abstract base class)
DescriptionRWvios is an abstract base class. It defines an interface similar to the
C++ streams class ios. However, unlike ios, it offers the advantage of
not necessarily being associated with a streambuf. This is useful for
classes that cannot use a streambuf in their implementation. An example
of such a class is RWXDRistream, where the XDR model does not permit
streambuf functionality. Specializing classes that do use streambufs in
their implementation (e.g., RWpistream) can usually just return the
corresponding ios function.
Persistence
None
Public Member Functions
virtual int
eof() = 0;
Returns a nonzero integer if an EOF has been encountered.
virtual int
fail() = 0;
Returns a nonzero integer if the fail or bad bit has been set. Normally,
this indicates that some storage or retrieval has failed but that the
stream is still in a usable state.
virtual int
bad() = 0;
Returns a nonzero integer if the bad bit has been set. Normally this
indicates that a severe error has occurred from which recovery is
probably impossible.
Page 1
RWvios(3C++) RWvios(3C++)
virtual int
good() = 0;
Returns a nonzero integer if no error bits have been set.
virtual int
rdstate() = 0;
Returns the current error state.
virtual void
clear(int v=0) = 0;
Sets the current error state to v. If v is zero, then this clears the
error state.
operator void*();
If fail() then return 0 else return self.
Page 2