Tools.h++ Manual
104011 Tandem Computers Incorporated 10-1
Using Class RWFileManager 10
Class 
RWFileManager 
allocates, deallocates and coalesces free space in a disk 
file. This is done internally by maintaining on disk a linked-list of free space 
blocks.
Two typedefs are used:
typedef long  RWoffset;
typedef unsigned long RWspace;
The type 
RWoffset 
is used for the offset within the file to the start of a storage 
space; 
RWspace 
is the amount of storage space required. The actual typedef 
may vary depending on the system you are using.
Class 
RWFile 
is a public base class of class 
RWFileManager
, therefore the 
public member functions of class 
RWFile 
are available to class 
RWFileManager
.
10.1 Construction
The RWFileManager constructor has prototype:
RWFileManager(const char* filename);
The argument is the name of the file that the 
RWFileManager 
is to manage. If 
it exists, it must contain a valid 
RWFileManager
. Otherwise, one will be 
created.










