#include <FileSystem.h>
Inherits SubsystemInterface.
Inherited by StdFileSystem.
Public Member Functions | |
| FileSystem () | |
| virtual | ~FileSystem () |
| void | init () |
| void | reset () |
| void | update () |
| File * | openFile (const Char *filename, Int access=0) |
| opens a File interface to the specified file | |
| Bool | doesFileExist (const Char *filename) const |
| returns TRUE if the file exists. filename should have no directory. | |
| void | getFileListInDirectory (const AsciiString &directory, const AsciiString &searchName, FilenameList &filenameList, Bool searchSubdirectories) const |
| search the given directory for files matching the searchName (egs. *.ini, *.rep). Possibly search subdirectories. | |
| Bool | getFileInfo (const AsciiString &filename, FileInfo *fileInfo) const |
| fills in the FileInfo struct for the file given. returns TRUE if successful. | |
| Bool | createDirectory (AsciiString directory) |
| create a directory of the given name. | |
| Bool | areMusicFilesOnCD () |
| void | loadMusicFilesFromCD () |
| void | unloadMusicFilesFromCD () |
| virtual | ~FileSystem () |
| virtual File * | open (const Char *filename, Int access=0) |
| opens a File interface to the specified file | |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | postProcessLoad () |
| virtual void | draw (void) |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Protected Attributes | |
| std::map< unsigned, bool > | m_fileExist |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
FileSystem is an interface class for creating specific FileSystem objects.
A FileSystem object's implemenation decides what derivative of File object needs to be created when FileSystem::Open() gets called.
Definition at line 121 of file FileSystem.h.
| FileSystem::FileSystem | ( | ) |
Definition at line 124 of file FileSystem.cpp.
|
virtual |
Definition at line 133 of file FileSystem.cpp.
|
inlinevirtual |
Definition at line 80 of file WSYS_FileSystem.h.
| Bool FileSystem::areMusicFilesOnCD | ( | ) |
Definition at line 267 of file FileSystem.cpp.
| Bool FileSystem::createDirectory | ( | AsciiString | directory | ) |
create a directory of the given name.
Definition at line 255 of file FileSystem.cpp.
returns TRUE if the file exists. filename should have no directory.
Definition at line 196 of file FileSystem.cpp.
| Bool FileSystem::getFileInfo | ( | const AsciiString & | filename, |
| FileInfo * | fileInfo ) const |
fills in the FileInfo struct for the file given. returns TRUE if successful.
Definition at line 233 of file FileSystem.cpp.
| void FileSystem::getFileListInDirectory | ( | const AsciiString & | directory, |
| const AsciiString & | searchName, | ||
| FilenameList & | filenameList, | ||
| Bool | searchSubdirectories ) const |
search the given directory for files matching the searchName (egs. *.ini, *.rep). Possibly search subdirectories.
Definition at line 223 of file FileSystem.cpp.
|
virtual |
Implements SubsystemInterface.
Definition at line 142 of file FileSystem.cpp.
| void FileSystem::loadMusicFilesFromCD | ( | ) |
Definition at line 301 of file FileSystem.cpp.
opens a File interface to the specified file
Reimplemented in StdFileSystem.
opens a File interface to the specified file
Definition at line 174 of file FileSystem.cpp.
|
virtual |
Implements SubsystemInterface.
Definition at line 163 of file FileSystem.cpp.
| void FileSystem::unloadMusicFilesFromCD | ( | ) |
Definition at line 325 of file FileSystem.cpp.
|
virtual |
Implements SubsystemInterface.
Definition at line 152 of file FileSystem.cpp.
|
mutableprotected |
Definition at line 145 of file FileSystem.h.