Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
RWpostream
RWpostream RWvostream RWvios
Synopsis
Description
Persistence
Example
Public Constructors
Public Destructor
Public Operators
Public Member Functions
Synopsis
#include <rw/pstream.h>
// Construct an RWpostream, using cout's streambuf:
RWpostream pstr(cout) ;
Description
Class RWpostream specializes the abstract base class RWvostream to store variables in a
portable (printable) ASCII format. The results can be restored by using its counterpart
RWpistream.
You can think of RWpistream and RWpostream as an ASCII veneer over an associated
streambuf which are responsible for formatting variables and escaping characters such that the
results can be interchanged between any machines. As such, they are slower than their binary
counterparts RWbistream and RWbostream which are more machine dependent. Because
RWpistream and RWpostream retain no information about the state of their associated
streambufs, their use can be freely exchanged with other users of the streambuf (such as
istream or ifstream).