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

Common::ArjArchive Class Reference

Inheritance diagram for Common::ArjArchive:
Collaboration diagram for Common::ArjArchive:

List of all members.

Public Member Functions

 ArjArchive (const String &name)
virtual ~ArjArchive ()
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

ArjHeadersMap _headers
String _arjFilename

Detailed Description

Definition at line 696 of file unarj.cpp.


Constructor & Destructor Documentation

Common::ArjArchive::ArjArchive ( const String name  ) 

Definition at line 711 of file unarj.cpp.

Common::ArjArchive::~ArjArchive (  )  [virtual]

Definition at line 741 of file unarj.cpp.


Member Function Documentation

SeekableReadStream * Common::ArjArchive::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 772 of file unarj.cpp.

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

Returns a ArchiveMember representation of the given file.

Implements Common::Archive.

Definition at line 765 of file unarj.cpp.

bool Common::ArjArchive::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 749 of file unarj.cpp.

int Common::ArjArchive::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 753 of file unarj.cpp.


Member Data Documentation

Definition at line 698 of file unarj.cpp.

Definition at line 697 of file unarj.cpp.


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


Generated on Sat Sep 21 2019 05:03:27 for ResidualVM by doxygen 1.7.1
curved edge   curved edge