Classes | |
struct | FileEntry |
Public Member Functions | |
U8SaveFile (Common::SeekableReadStream *rs) | |
bool | isValid () const |
Check if constructed object is indeed a valid archive. | |
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 |
Common::SeekableReadStream * | createReadStreamForMember (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 * | 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 bool | isU8SaveFile (Common::SeekableReadStream *rs) |
Protected Types | |
typedef Common::HashMap< Common::String, FileEntry, Common::IgnoreCase_Hash, Common::IgnoreCase_EqualTo > | U8SaveFileMap |
Protected Attributes | |
Common::SeekableReadStream * | _rs |
bool | _valid |
U8SaveFileMap | _map |
|
explicit |
create U8SaveFile from datasource; U8SaveFile takes ownership of ds and deletes it when destructed
|
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.
|
overridevirtual |
Create a stream bound to a member with the specified name in the archive. If no member with this name exists, 0 is returned.
Implements Common::Archive.