This class implements the FileManI interface. More...
#include "FileManImpl.hpp"
Public Member Functions | |
FileManImplT () | |
The constructor. More... | |
~FileManImplT () | |
The destructor. More... | |
FileSystemT * | MountFileSystem (FileSystemTypeT Type, const std::string &Descr, const std::string &MountPoint, const std::string &Password="") |
"Mounts" (or "registers") a new file system into the scope of the file manager. More... | |
void | Unmount (FileSystemT *FileSystem) |
"Unmounts" (or "unregisters") a file system from the file manager. More... | |
InFileI * | OpenRead (const std::string &FileName) |
Opens the file with the given name for reading. More... | |
void | Close (FileI *File) |
Closes the given file. More... | |
![]() | |
virtual | ~FileManI () |
The destructor. More... | |
This class implements the FileManI interface.
FileManImplT::FileManImplT | ( | ) |
The constructor.
FileManImplT::~FileManImplT | ( | ) |
The destructor.
|
virtual |
Closes the given file.
Implements cf::FileSys::FileManI.
|
virtual |
"Mounts" (or "registers") a new file system into the scope of the file manager.
For example, you can register paths on a local hard-disk, compressed archives and HTTP connections as file systems.
Type | The type of the file system to be mounted. |
Descr | A description/specification of the file system to be mounted, for example "Games/DeathMatch/", "MyArchive.zip", etc. |
MountPoint | The mount point of the file system, i.e. the path where the contents of the file system is attached to. |
Password | The password string that might be required to access the specified file system (e.g. encrypted zip archives). |
Implements cf::FileSys::FileManI.
|
virtual |
Opens the file with the given name for reading.
The registered file systems are probed in opposite order in which they have been registered for opening the file.
FileName | The name of the file to be opened within one of the previously registered file systems. |
Implements cf::FileSys::FileManI.
|
virtual |
"Unmounts" (or "unregisters") a file system from the file manager.
FileSystem | The handle to the file system that was obtained by the call to MountFileSystem. |
Implements cf::FileSys::FileManI.