#include <archive.h>
Public Member Functions | |
virtual SeekableReadStream * | createReadStream () const =0 |
virtual SeekableReadStream * | createReadStreamForAltStream (AltStreamType altStreamType) const =0 |
virtual String | getName () const =0 |
virtual Path | getPathInArchive () const =0 |
virtual String | getFileName () const =0 |
virtual bool | isDirectory () const |
virtual void | listChildren (ArchiveMemberList &childList, const char *pattern=nullptr) const |
virtual U32String | getDisplayName () const |
virtual bool | isInMacArchive () const |
The ArchiveMember class is an abstract interface to represent elements inside implementations of an archive.
Archive subclasses must provide their own implementation of ArchiveMember, and use it when serving calls to Archive::listMembers and Archive::listMatchingMembers. Alternatively, you can use the GenericArchiveMember.
|
pure virtual |
Create a read stream.
Implemented in Common::FSNode, Common::GenericArchiveMember, Common::ProDOSFile, Grim::LabEntry, and Wintermute::BaseFileEntry.
|
pure virtual |
Create a read stream of an alternate stream.
Implemented in Common::FSNode, Common::GenericArchiveMember, Common::ProDOSFile, Grim::LabEntry, and Wintermute::BaseFileEntry.
|
pure virtual |
Implemented in Common::FSNode, Common::GenericArchiveMember, Common::ProDOSFile, Wintermute::BaseFileEntry, and Grim::LabEntry.
|
pure virtual |
Get the full path of the archive member relative to the containing archive root.
Implemented in Common::FSNode, Common::GenericArchiveMember, Common::ProDOSFile, Wintermute::BaseFileEntry, and Grim::LabEntry.
|
pure virtual |
Get the file name of the archive member relative to its containing directory within the archive.
Implemented in Common::FSNode, Common::GenericArchiveMember, Common::ProDOSFile, Wintermute::BaseFileEntry, and Grim::LabEntry.
|
virtual |
Checks if the ArchiveMember is a directory.
Reimplemented in Common::FSNode, and Common::GenericArchiveMember.
|
virtual |
Adds the immediate children of this archive member to childList, optionally matching a pattern.
Reimplemented in Common::FSNode, and Common::GenericArchiveMember.
|
virtual |
Get the display name of the archive member.
Reimplemented in Common::FSNode.
|
virtual |
Checks if the ArchiveMember is in a Mac archive, in which case resource forks and Finder info can only be loaded via alt streams.