#include <ArchiveFileSystem.h>
Inherits SubsystemInterface.
Inherited by Win32BIGFileSystem.
Public Member Functions | |
| ArchiveFileSystem () | |
| virtual | ~ArchiveFileSystem () |
| virtual void | init (void)=0 |
| virtual void | update (void)=0 |
| virtual void | reset (void)=0 |
| virtual void | postProcessLoad (void)=0 |
| virtual ArchiveFile * | openArchiveFile (const Char *filename)=0 |
| Create new or return existing Archive file from file name. | |
| virtual void | closeArchiveFile (const Char *filename)=0 |
| Close the one specified big file. | |
| virtual void | closeAllArchiveFiles (void)=0 |
| Close all Archivefiles currently open. | |
| virtual File * | openFile (const Char *filename, Int access=0) |
| Search Archive files for specified file name and open it if found. | |
| virtual void | closeAllFiles (void)=0 |
| Close all files associated with ArchiveFiles. | |
| virtual Bool | doesFileExist (const Char *filename) const |
| return true if that file exists in an archive file somewhere. | |
| void | getFileListInDirectory (const AsciiString ¤tDirectory, const AsciiString &originalDirectory, const AsciiString &searchName, FilenameList &filenameList, Bool searchSubdirectories) const |
| search the given directory for files matching the searchName (egs. *.ini, *.rep). Possibly search subdirectories. Scans each Archive file. | |
| Bool | getFileInfo (const AsciiString &filename, FileInfo *fileInfo) const |
| see FileSystem.h | |
| virtual Bool | loadBigFilesFromDirectory (AsciiString dir, AsciiString fileMask, Bool overwrite=FALSE)=0 |
| AsciiString | getArchiveFilenameForFile (const AsciiString &filename) const |
| void | loadMods (void) |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | draw (void) |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Protected Member Functions | |
| virtual void | loadIntoDirectoryTree (const ArchiveFile *archiveFile, const AsciiString &archiveFilename, Bool overwrite=FALSE) |
| load the archive file's header information and apply it to the global archive directory tree. | |
Protected Attributes | |
| ArchiveFileMap | m_archiveFileMap |
| ArchivedDirectoryInfo | m_rootDirectory |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
Definition at line 147 of file ArchiveFileSystem.h.
| ArchiveFileSystem::ArchiveFileSystem | ( | ) |
Definition at line 109 of file ArchiveFileSystem.cpp.
|
virtual |
Definition at line 113 of file ArchiveFileSystem.cpp.
|
pure virtual |
Close all Archivefiles currently open.
Implemented in Win32BIGFileSystem.
|
pure virtual |
Close all files associated with ArchiveFiles.
Implemented in Win32BIGFileSystem.
|
pure virtual |
Close the one specified big file.
Implemented in Win32BIGFileSystem.
return true if that file exists in an archive file somewhere.
Definition at line 201 of file ArchiveFileSystem.cpp.
| AsciiString ArchiveFileSystem::getArchiveFilenameForFile | ( | const AsciiString & | filename | ) | const |
Definition at line 267 of file ArchiveFileSystem.cpp.
| Bool ArchiveFileSystem::getFileInfo | ( | const AsciiString & | filename, |
| FileInfo * | fileInfo ) const |
see FileSystem.h
Definition at line 245 of file ArchiveFileSystem.cpp.
| void ArchiveFileSystem::getFileListInDirectory | ( | const AsciiString & | currentDirectory, |
| const AsciiString & | originalDirectory, | ||
| const AsciiString & | searchName, | ||
| FilenameList & | filenameList, | ||
| Bool | searchSubdirectories ) const |
search the given directory for files matching the searchName (egs. *.ini, *.rep). Possibly search subdirectories. Scans each Archive file.
Definition at line 320 of file ArchiveFileSystem.cpp.
|
pure virtual |
Implements SubsystemInterface.
Implemented in Win32BIGFileSystem.
|
pure virtual |
Implemented in Win32BIGFileSystem.
|
protectedvirtual |
load the archive file's header information and apply it to the global archive directory tree.
Definition at line 126 of file ArchiveFileSystem.cpp.
| void ArchiveFileSystem::loadMods | ( | void | ) |
Definition at line 174 of file ArchiveFileSystem.cpp.
|
pure virtual |
Create new or return existing Archive file from file name.
Implemented in Win32BIGFileSystem.
Search Archive files for specified file name and open it if found.
Definition at line 233 of file ArchiveFileSystem.cpp.
|
pure virtual |
Reimplemented from SubsystemInterface.
Implemented in Win32BIGFileSystem.
|
pure virtual |
Implements SubsystemInterface.
Implemented in Win32BIGFileSystem.
|
pure virtual |
Implements SubsystemInterface.
Implemented in Win32BIGFileSystem.
|
protected |
Definition at line 180 of file ArchiveFileSystem.h.
|
protected |
Definition at line 181 of file ArchiveFileSystem.h.