Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

FileManager Class Reference

File Manager (filesystem abstraction). More...

#include <filemanager.h>

List of all members.

Public Methods

 FileManager ()
 FileManager constructor.

virtual ~FileManager ()
 FileManager destructor.

void addDir (const char *dir)
 Add a directory to the search list.

void remove (const char *filename)
 Remove a file or a directory in the virtual filesystem.

FILE * openFP (const char *filename, const char *mode, bool verboseIfNotFound=true)
 Look for a file called 'filename' and then call fopen() with the given mode.


Private Methods

void clearDirList (void)
 clear the list of directory.

FILE * openWithbackupFP (const char *filename, const char *mode)
 open a file, if it is in writing, do a backup, fopen version.


Private Attributes

std::vector< const char * > dirList
 List of directory where to search for requested file.

int dirListIndexCache
 Last index in dir list, accelerate loading.


Detailed Description

File Manager (filesystem abstraction).

Definition at line 32 of file filemanager.h.


The documentation for this class was generated from the following files:
Generated on Fri May 16 13:01:49 2003 for Jelie by doxygen1.2.15