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

Wintermute::PackageSet Class Reference

#include <base_package.h>

Inheritance diagram for Wintermute::PackageSet:
Collaboration diagram for Wintermute::PackageSet:

List of all members.

Public Member Functions

 ~PackageSet () override
 PackageSet (Common::FSNode package, const Common::String &filename="", bool searchSignature=false)
bool hasFile (const Common::String &name) const override
 Check if a member with the given name is present in the Archive.
int listMembers (Common::ArchiveMemberList &list) const override
 Add all members of the Archive to list.
const Common::ArchiveMemberPtr getMember (const Common::String &name) const override
 Returns a ArchiveMember representation of the given file.
Common::SeekableReadStreamcreateReadStreamForMember (const Common::String &name) const override
 Create a stream bound to a member with the specified name in the archive.
int getPriority () const
uint32 getVersion () const

Private Attributes

byte _priority
uint32 _version
Common::Array< BasePackage * > _packages
Common::HashMap
< Common::String,
Common::ArchiveMemberPtr
_files
Common::HashMap
< Common::String,
Common::ArchiveMemberPtr >
::iterator 
_filesIter

Detailed Description

Definition at line 48 of file base_package.h.


Constructor & Destructor Documentation

Wintermute::PackageSet::~PackageSet (  )  [override]

Definition at line 243 of file base_package.cpp.

Wintermute::PackageSet::PackageSet ( Common::FSNode  package,
const Common::String filename = "",
bool  searchSignature = false 
)

Definition at line 113 of file base_package.cpp.


Member Function Documentation

Common::SeekableReadStream * Wintermute::PackageSet::createReadStreamForMember ( const Common::String name  )  const [override, 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 278 of file base_package.cpp.

const Common::ArchiveMemberPtr Wintermute::PackageSet::getMember ( const Common::String name  )  const [override, virtual]

Returns a ArchiveMember representation of the given file.

Implements Common::Archive.

Definition at line 270 of file base_package.cpp.

int Wintermute::PackageSet::getPriority (  )  const [inline]

Definition at line 80 of file base_package.h.

uint32 Wintermute::PackageSet::getVersion (  )  const [inline]

Definition at line 81 of file base_package.h.

bool Wintermute::PackageSet::hasFile ( const Common::String name  )  const [override, 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 250 of file base_package.cpp.

int Wintermute::PackageSet::listMembers ( Common::ArchiveMemberList list  )  const [override, 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 258 of file base_package.cpp.


Member Data Documentation

Definition at line 84 of file base_package.h.

Definition at line 85 of file base_package.h.


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


Generated on Sat Aug 8 2020 05:04:04 for ResidualVM by doxygen 1.7.1
curved edge   curved edge