Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
RWCacheManager
Synopsis
Description
Persistence
Example
Public Constructor
Public Destructor
Public Member Functions
Synopsis
#include <rw/cacheman.h>
RWFile f("file.dat"); // Construct a file
RWCacheManager(&f, 100); // Cache 100 byte blocks to file.dat
Description
Class RWCacheManager caches fixed length blocks to and from an associated RWFile. The
block size can be of any length and is set at construction time. The number of cached blocks can
also be set at construction time.
Writes to the file may be deferred. Use member function flush() to have any pending writes
performed.
Persistence
None
Example
#include <rw/cacheman.h>
#include <rw/rwfile.h>