Public Member Functions

FIFE::ZipSource Class Reference

#include <zipsource.h>

Inheritance diagram for FIFE::ZipSource:
Inheritance graph
[legend]
Collaboration diagram for FIFE::ZipSource:
Collaboration graph
[legend]

List of all members.

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 RawDataopen (const std::string &path) const

Detailed Description

Implements a Zip archive file source.

See also:
FIFE::VFSSource

Definition at line 44 of file zipsource.h.


Member Function Documentation

std::set< std::string > FIFE::ZipSource::listDirectories ( const std::string &  path  )  const [virtual]

list all directories in a directory of this source

Parameters:
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.

std::set< std::string > FIFE::ZipSource::listFiles ( const std::string &  path  )  const [virtual]

list all files in a directory of this source

Parameters:
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.

RawData * FIFE::ZipSource::open ( const std::string &  file  )  const [virtual]

open a file inside this source

Parameters:
file the file to open
Returns:
a new RawData*
Exceptions:
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().


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