FIFE
2008.0
|
#include <zipsource.h>
Public Member Functions | |
bool | fileExists (const std::string &file) const |
WARNING: fileExists, listFiles and listDirectories are not. | |
std::set< std::string > | listFiles (const std::string &path) const |
std::set< std::string > | listDirectories (const std::string &path) const |
virtual RawData * | open (const std::string &path) const |
![]() | |
VFS * | getVFS () const |
Implements a Zip archive file source.
Definition at line 44 of file zipsource.h.
|
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.
Definition at line 202 of file zipsource.cpp.
|
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.
Definition at line 174 of file zipsource.cpp.
|
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 61 of file zipsource.cpp.
References FIFE::RawData::readInto(), and FIFE::RawData::setIndex().