ScummVM API documentation
Ultima::Shared::UltimaDataArchiveProxy Class Reference

#include <data_archive.h>

Inheritance diagram for Ultima::Shared::UltimaDataArchiveProxy:
Common::Archive

Public Member Functions

bool hasFile (const Common::Path &path) const override
 
int listMatchingMembers (Common::ArchiveMemberList &list, const Common::Path &pattern, bool matchPathComponents=false) const override
 
int listMembers (Common::ArchiveMemberList &list) const override
 
const Common::ArchiveMemberPtr getMember (const Common::Path &path) const override
 
Common::SeekableReadStreamcreateReadStreamForMember (const Common::Path &path) const override
 
bool isPathDirectory (const Common::Path &path) const override
 
- Public Member Functions inherited from Common::Archive
virtual SeekableReadStreamcreateReadStreamForMemberAltStream (const Path &path, AltStreamType altStreamType) const
 
virtual SeekableReadStreamcreateReadStreamForMemberNext (const Path &path, const Archive *starting) const
 
Common::Error dumpArchive (const Path &destPath)
 
virtual char getPathSeparator () const
 

Detailed Description

The data archive proxy class is used for debugging purposes to access engine data files when the create_ultima folder is in the search path. It will allow for local mucking around with the data files and committing changes without having to recreate the ultima.dat file every time a change is made. ultima.dat then just has to be recreated prior to a release or when the changes are completed and stable

Member Function Documentation

◆ hasFile()

bool Ultima::Shared::UltimaDataArchiveProxy::hasFile ( const Common::Path path) const
inlineoverridevirtual

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.

◆ listMatchingMembers()

int Ultima::Shared::UltimaDataArchiveProxy::listMatchingMembers ( Common::ArchiveMemberList list,
const Common::Path pattern,
bool  matchPathComponents = false 
) const
overridevirtual

Add all members of the Archive matching the specified pattern to list. Must only append to list, and not remove elements from it.

Returns
the number of members added to list

Reimplemented from Common::Archive.

◆ listMembers()

int Ultima::Shared::UltimaDataArchiveProxy::listMembers ( Common::ArchiveMemberList list) const
overridevirtual

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.

◆ getMember()

const Common::ArchiveMemberPtr Ultima::Shared::UltimaDataArchiveProxy::getMember ( const Common::Path path) const
overridevirtual

Returns a ArchiveMember representation of the given file.

Implements Common::Archive.

◆ createReadStreamForMember()

Common::SeekableReadStream* Ultima::Shared::UltimaDataArchiveProxy::createReadStreamForMember ( const Common::Path path) const
overridevirtual

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.

◆ isPathDirectory()

bool Ultima::Shared::UltimaDataArchiveProxy::isPathDirectory ( const Common::Path path) const
overridevirtual

Check if a member with the given name exists and is a directory.

Reimplemented from Common::Archive.


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