ScummVM API documentation
Xeen::CCArchive Class Reference

#include <files.h>

Inheritance diagram for Xeen::CCArchive:
Xeen::BaseCCArchive Common::Archive

Public Member Functions

 CCArchive (const Common::String &filename, bool encoded)
 
 CCArchive (const Common::String &filename, const Common::String &prefix, bool encoded)
 
Common::SeekableReadStreamcreateReadStreamForMember (const Common::Path &path) const override
 
- Public Member Functions inherited from Xeen::BaseCCArchive
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
 
- Public Member Functions inherited from Common::Archive
virtual int listMatchingMembers (ArchiveMemberList &list, const Path &pattern) const
 

Protected Member Functions

bool getHeaderEntry (const Common::String &resourceName, CCEntry &ccEntry) const override
 
- Protected Member Functions inherited from Xeen::BaseCCArchive
void loadIndex (Common::SeekableReadStream &stream)
 
void saveIndex (Common::WriteStream &stream)
 
virtual bool getHeaderEntry (uint16 id, CCEntry &ccEntry) const
 

Additional Inherited Members

- Static Public Member Functions inherited from Xeen::BaseCCArchive
static uint16 convertNameToId (const Common::String &resourceName)
 
- Protected Attributes inherited from Xeen::BaseCCArchive
Common::Array< CCEntry_index
 

Detailed Description

Xeen CC file implementation

Member Function Documentation

◆ getHeaderEntry()

bool Xeen::CCArchive::getHeaderEntry ( const Common::String resourceName,
CCEntry ccEntry 
) const
overrideprotectedvirtual

Given a resource name, returns whether an entry exists, and returns the header index data for that entry

Reimplemented from Xeen::BaseCCArchive.

◆ createReadStreamForMember()

Common::SeekableReadStream* Xeen::CCArchive::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.


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