Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
RWbistream
RWvistream RWios RWvios
RWbistream
ios
Synopsis
Description
Persistence
Example
Public Constructors
Public Operators
Public Member Functions
Synopsis
#include <rw/bstream.h>
RWbistream bstr(cin); // Construct an RWbistream,
// using cin's streambuf
Description
Class RWbistream specializes the abstract base class RWvistream to restore variables stored in
binary format by RWbostream.
You can think of it as a binary veneer over an associated streambuf. Because the RWbistream
retains no information about the state of its associated streambuf, its use can be freely
exchanged with other users of the streambuf (such as an istream or ifstream).
RWbistream can be interrogated as to the stream state using member functions good(), bad(),
eof(), etc.