Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
RWbostream
RWvostream RWio RWvios
RWbostream
ios
Synopsis
Description
Persistence
Example
Public Constructors
Public Destructor
Public Operators
Public Member Functions
Synopsis
#include <rw/bstream.h>
// Construct an RWbostream, using cout's streambuf:
RWbostream bstr(cout);
Description
Class RWbostream specializes the abstract base class RWvostream to store variables in binary
format. The results can be restored by using its counterpart RWbistream.
You can think of it as a binary veneer over an associated streambuf. Because the RWbostream
retains no information about the state of its associated streambuf, its use can be freely exchanged
with other users of the streambuf (such as ostream or ofstream).
Note that variables should not be separated with white space. Such white space would be
interpreted literally and would have to be read back in as a character string.