ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::ZipArchive Class Reference

Inheritance diagram for Common::ZipArchive:
Collaboration diagram for Common::ZipArchive:

List of all members.

Public Member Functions

 ZipArchive (unzFile zipFile)
 ~ZipArchive ()
virtual bool hasFile (const String &name) const
 Check if a member with the given name is present in the Archive.
virtual int listMembers (ArchiveMemberList &list) const
 Add all members of the Archive to list.
virtual const ArchiveMemberPtr getMember (const String &name) const
 Returns a ArchiveMember representation of the given file.
virtual SeekableReadStreamcreateReadStreamForMember (const String &name) const
 Create a stream bound to a member with the specified name in the archive.

Private Attributes

unzFile _zipFile

Detailed Description

Definition at line 1423 of file unzip.cpp.


Constructor & Destructor Documentation

Common::ZipArchive::ZipArchive ( unzFile  zipFile  ) 

Definition at line 1456 of file unzip.cpp.

Common::ZipArchive::~ZipArchive (  ) 

Definition at line 1460 of file unzip.cpp.


Member Function Documentation

SeekableReadStream * Common::ZipArchive::createReadStreamForMember ( const String name  )  const [virtual]

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.

Definition at line 1488 of file unzip.cpp.

const ArchiveMemberPtr Common::ZipArchive::getMember ( const String name  )  const [virtual]

Returns a ArchiveMember representation of the given file.

Implements Common::Archive.

Definition at line 1481 of file unzip.cpp.

bool Common::ZipArchive::hasFile ( const String name  )  const [virtual]

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.

Implements Common::Archive.

Definition at line 1464 of file unzip.cpp.

int Common::ZipArchive::listMembers ( ArchiveMemberList list  )  const [virtual]

Add all members of the Archive to list.

Must only append to list, and not remove elements from it.

Returns:
the number of names added to list

Implements Common::Archive.

Definition at line 1468 of file unzip.cpp.


Member Data Documentation

Definition at line 1424 of file unzip.cpp.


The documentation for this class was generated from the following file:


Generated on Sat Mar 16 2019 05:05:45 for ResidualVM by doxygen 1.7.1
curved edge   curved edge