#include <files.h>
Public Member Functions | |
bool | hasFile (const Common::Path &path) const override |
int | listMembers (Common::ArchiveMemberList &list) const override |
const Common::ArchiveMemberPtr | getMember (const Common::Path &path) const override |
Public Member Functions inherited from Common::Archive | |
virtual int | listMatchingMembers (ArchiveMemberList &list, const Path &pattern) const |
virtual SeekableReadStream * | createReadStreamForMember (const Path &path) const =0 |
Static Public Member Functions | |
static uint16 | convertNameToId (const Common::String &resourceName) |
Protected Member Functions | |
void | loadIndex (Common::SeekableReadStream &stream) |
void | saveIndex (Common::WriteStream &stream) |
virtual bool | getHeaderEntry (const Common::String &resourceName, CCEntry &ccEntry) const |
virtual bool | getHeaderEntry (uint16 id, CCEntry &ccEntry) const |
Protected Attributes | |
Common::Array< CCEntry > | _index |
Base Xeen CC file implementation
|
protected |
Load the index of a given CC file
|
protected |
Saves out the contents of the index. Used when creating savegames
|
protectedvirtual |
Given a resource name, returns whether an entry exists, and returns the header index data for that entry
Reimplemented in Xeen::CCArchive.
|
protectedvirtual |
Given a resource Id, returns whether an entry exists, and returns the header index data for that entry
|
static |
Hash a given filename to produce the Id that represents it
|
overridevirtual |
Check if a member with the given name
is present in the Archive. Patterns are not allowed, as this is meant to be a quick File::exists() replacement.
Implements Common::Archive.
|
overridevirtual |
Add all members of the Archive to the list. Must only append to list, and not remove elements from it.
Implements Common::Archive.
|
overridevirtual |
Return an ArchiveMember representation of the given file.
Implements Common::Archive.