Role Playing Database (API Documentation)  3.1.0b
Public Member Functions | List of all members
vfs::rpg::RPGFileSystem Class Reference

The filesystem class. This is the class that implements a simple Virtual Filesystem for internal use by the Roleplaying Database program. It stores the working version of the RPG DB bundle which is normally stored as a ZIP file. It is a basic and simple file system, using a backing file as temporary file system storage. More...

Public Member Functions

 RPGFileSystem (backingfile,...)
 
 ~RPGFileSystem ()
 

Detailed Description

The filesystem class. This is the class that implements a simple Virtual Filesystem for internal use by the Roleplaying Database program. It stores the working version of the RPG DB bundle which is normally stored as a ZIP file. It is a basic and simple file system, using a backing file as temporary file system storage.

Constructor & Destructor Documentation

◆ RPGFileSystem()

vfs::rpg::RPGFileSystem::RPGFileSystem ( backingfile  ,
  ... 
)

Constructor – takes care of mounting the file system. The root directory is set up. If the backing file already exists, the root directory is read in from the backing file.

Parameters
mountpointThe name of the mount point.
backingfileThe name of the backing file. It is created if it does not exist.

◆ ~RPGFileSystem()

vfs::rpg::RPGFileSystem::~RPGFileSystem ( )

Destructor – unmount the filesystem and free up all allocated memory. Flush the directory tree to the backing file if it is "dirty".


The documentation for this class was generated from the following file: