|
|
| CifTree (Common::SeekableReadStream *stream, const Common::Path &name) |
| |
|
| CifTree (const Common::ArchiveMemberPtr &member, const Common::Path &name) |
| |
|
const CifInfo & | getCifInfo (const Common::Path &name) const |
| |
| 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 |
| |
|
Common::Path | getName () const |
| |
|
Common::SeekableReadStream * | createReadStreamRaw (const Common::Path &path) const |
| |
|
bool | sync (Common::Serializer &ser) |
| |
|
void | addInfo (const CifInfo &info) |
| |
|
uint | writeFileMapSize () const |
| |
|
uint32 | getDataOffset (uint i) const |
| |
|
void | setDataOffset (uint i, uint32 offset) |
| |
|
Common::Array< Common::Path > | getPathsForType (CifInfo::ResType type=CifInfo::kResTypeAny) const |
| |
| 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 |
| |
|
virtual bool | getChildren (const Common::Path &path, Common::Array< Common::String > &list, ListMode mode=kListDirectoriesOnly, bool hidden=true) const |
| |
|
| enum | ListMode { kListFilesOnly = 1,
kListDirectoriesOnly = 2,
kListAll = 3
} |
| |
◆ hasFile()
| bool Nancy::CifTree::hasFile |
( |
const Common::Path & |
path | ) |
const |
|
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.
Reimplemented in Nancy::PatchTree.
◆ listMembers()
Add all members of the Archive to the list. Must only append to list, and not remove elements from it.
- Returns
- The number of names added to list.
Implements Common::Archive.
◆ getMember()
Return an ArchiveMember representation of the given file.
Implements Common::Archive.
◆ createReadStreamForMember()
Create a stream bound to a member with the specified name in the archive. If no member with this name exists, 0 is returned.
- Returns
- The newly created input stream.
Implements Common::Archive.
The documentation for this class was generated from the following file: