#include <cc_archive.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 bool | isPathDirectory (const Path &path) const |
virtual int | listMatchingMembers (ArchiveMemberList &list, const Path &pattern, bool matchPathComponents=false) const |
virtual SeekableReadStream * | createReadStreamForMember (const Path &path) const =0 |
virtual SeekableReadStream * | createReadStreamForMemberAltStream (const Path &path, AltStreamType altStreamType) const |
virtual SeekableReadStream * | createReadStreamForMemberNext (const Path &path, const Archive *starting) const |
Common::Error | dumpArchive (const Path &destPath) |
virtual char | getPathSeparator () const |
Static Public Member Functions | |
static uint16 | convertNameToId (const Common::Path &resourceName) |
Protected Member Functions | |
void | loadIndex (Common::SeekableReadStream &stream) |
void | saveIndex (Common::WriteStream &stream) |
virtual bool | getHeaderEntry (const Common::Path &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 MM::Shared::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. This returns "true" for both files and directories.
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.