|
FIFE
2008.0
|
#include <dat1.h>


Public Member Functions | |
| DAT1 (VFS *vfs, const std::string &file) | |
| bool | fileExists (const std::string &name) const |
| RawData * | open (const std::string &file) const |
| const RawDataDAT1::s_info & | getInfo (const std::string &name) const |
| std::set< std::string > | listFiles (const std::string &pathstr) const |
| std::set< std::string > | listDirectories (const std::string &pathstr) const |
Public Member Functions inherited from FIFE::VFSSource | |
| VFS * | getVFS () const |
| FIFE::DAT1::DAT1 | ( | VFS * | vfs, |
| const std::string & | file | ||
| ) |
|
virtual |
check if the given file exists
| file | filename to check |
Implements FIFE::VFSSource.
| const RawDataDAT1::s_info & FIFE::DAT1::getInfo | ( | const std::string & | name | ) | const |
Get the needed information to unpack and extract a file from the DAT file. Retrieves the Information needed to extract a specific file, this is passed as argument to a mffalloutrawdatadat1 RawMemSource, which itself fills its memory content with the unpacked file.
| NotFound |
Definition at line 99 of file dat1.cpp.
Referenced by open().

|
virtual |
list all directories in a directory of this source
| path | path to list directories in Will return an empty list on any error |
Implements FIFE::VFSSource.
|
virtual |
list all files in a directory of this source
| path | path to list files in Will return an empty list on any error |
Implements FIFE::VFSSource.
|
virtual |
open a file inside this source
| file | the file to open |
| CannotOpenFile | if the file can't be found |
Implements FIFE::VFSSource.
Definition at line 90 of file dat1.cpp.
References getInfo(), and FIFE::VFSSource::getVFS().