#include <FileManager.hpp>
Public Member Functions | |
FileManager () | |
virtual | ~FileManager () |
virtual void | init (const char **files) |
virtual void | cleanup () |
virtual bool | addFileIfExists (const char *filename)=0 |
virtual InputStream * | open (const char *filename)=0 |
virtual void | close (InputStream *&is)=0 |
virtual OutputStream * | openOutput (const char *filename)=0 |
virtual void | closeOutput (OutputStream *&is)=0 |
void | load (const char *filename) |
void | save (const char *filename) |
virtual bool | exists (const char *filename) const =0 |
void | loadDirectory (const char *directory) |
Load and parse all the files in this directory and all subdirectories. | |
void | loadBatch (const char *batchFilename) |
Load and parse all the files in the batch file. | |
virtual int | fileCount () const =0 |
virtual const char * | filename (int index) const =0 |
This class should be subclassed in a platform dependent layer. This enables SagaEngine's data file architecture to both handle real file systems, network transfers, and file system emulation on ROMs.
Definition at line 38 of file FileManager.hpp.
|
Definition at line 34 of file FileManager.cpp. |
|
Definition at line 39 of file FileManager.cpp. |
|
|
|
Definition at line 43 of file FileManager.hpp. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 42 of file FileManager.hpp. |
|
Definition at line 44 of file FileManager.cpp. References AssertWarning, se_core::ParseManager::parse(), and se_core::IoSchema::parser(). |
|
Load and parse all the files in the batch file. The batch should contain one filename per line. Definition at line 80 of file FileManager.cpp. References AssertWarning, LogDetail, LogFatal, se_core::ParseManager::parse(), se_core::IoSchema::parser(), and se_core::InputStream::readLine(). |
|
Load and parse all the files in this directory and all subdirectories.
Definition at line 63 of file FileManager.cpp. References AssertWarning, se_core::ParseManager::parse(), and se_core::IoSchema::parser(). |
|
|
|
|
|
Definition at line 54 of file FileManager.cpp. References se_core::EncodeManager::encode(), and se_core::IoSchema::encoder(). |
Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:25 2007 by Doxygen version 1.3.9.1.