Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
StdFileSystem Class Reference

#include <WSYS_StdFileSystem.h>

Inherits FileSystem.

Public Member Functions

virtual ~StdFileSystem ()
 
virtual Fileopen (const Char *filename, Int access=0)
 Creates a StdFile object and opens the file with it: See FileSystem::open.
 
- Public Member Functions inherited from FileSystem
 FileSystem ()
 
virtual ~FileSystem ()
 
void init ()
 
void reset ()
 
void update ()
 
FileopenFile (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 ()
 
- 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)
 

Additional Inherited Members

- Protected Attributes inherited from FileSystem
std::map< unsigned, boolm_fileExist
 
- Protected Attributes inherited from SubsystemInterface
AsciiString m_name
 

Detailed Description

FileSystem that maps directly to StdFile files.

Definition at line 75 of file WSYS_StdFileSystem.h.

Constructor & Destructor Documentation

◆ ~StdFileSystem()

StdFileSystem::~StdFileSystem ( )
virtual

Definition at line 94 of file WSYS_StdFileSystem.cpp.

Member Function Documentation

◆ open()

File * StdFileSystem::open ( const Char * filename,
Int access = 0 )
virtual

Creates a StdFile object and opens the file with it: See FileSystem::open.

This simply creates a StdFile object and calls its open function.

Reimplemented from FileSystem.

Definition at line 107 of file WSYS_StdFileSystem.cpp.


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