Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
RWAuditStreamBuffer
RWAuditStreamBuffer streambuf
Synopsis
Description
Persistence
Short Example
Related Classes
Global Typedef
Public Constructors
Public Destructor
Public Member Operator
Public Member Function
Extended Example
Synopsis
#include <rw/auditbuf.h>
#include <iostream.h>
RWAuditStreamBuffer buf(arguments)
ostream os(&buf); // may be used for ostreams
istream is(&buf); // or istreams of any kind
Description
Class RWAuditStreamBuffer is used to construct a stream, after which the
RWAuditStreamBuffer instance will count all the bytes that pass through the stream. If
constructed with a function pointer, RWAuditStreamBuffer will call that function with each
byte that passes through the stream. The counting capacity provides for streams the equivalent
of the RWCollectable method recursiveStoreSize() which is only available for RWFile.