#include <archive.h>
Public Member Functions | |
GenericArchiveMember (const Common::String &pathStr, const Archive &parent) | |
GenericArchiveMember (const Common::Path &path, const Archive &parent) | |
String | getName () const override |
Path | getPathInArchive () const override |
String | getFileName () const override |
SeekableReadStream * | createReadStream () const override |
SeekableReadStream * | createReadStreamForAltStream (AltStreamType altStreamType) const override |
bool | isDirectory () const override |
void | listChildren (ArchiveMemberList &childList, const char *pattern) const override |
Public Member Functions inherited from Common::ArchiveMember | |
virtual U32String | getDisplayName () const |
virtual bool | isInMacArchive () const |
Simple ArchiveMember implementation which allows creation of ArchiveMember compatible objects via a simple Archive and name pair.
Note that GenericArchiveMember objects will not be working anymore after the 'parent' object is destroyed.
Common::GenericArchiveMember::GenericArchiveMember | ( | const Common::String & | pathStr, |
const Archive & | parent | ||
) |
Create a generic archive member that belongs to the parent
archive.
Common::GenericArchiveMember::GenericArchiveMember | ( | const Common::Path & | path, |
const Archive & | parent | ||
) |
Create a generic archive member that belongs to the parent
archive.
|
overridevirtual |
Get the name of a generic archive member.
Implements Common::ArchiveMember.
|
overridevirtual |
Get the full path of the archive member relative to the containing archive root.
Implements Common::ArchiveMember.
|
overridevirtual |
Get the file name of the archive member relative to its containing directory within the archive.
Implements Common::ArchiveMember.
|
overridevirtual |
Create a read stream.
Implements Common::ArchiveMember.
|
overridevirtual |
Create a read stream of an alternate stream.
Implements Common::ArchiveMember.
|
overridevirtual |
Checks if the ArchiveMember is a directory.
Reimplemented from Common::ArchiveMember.
|
overridevirtual |
Adds the immediate children of this archive member to childList, optionally matching a pattern.
Reimplemented from Common::ArchiveMember.