25 #ifndef AURORA_ARCHIVE_H 26 #define AURORA_ARCHIVE_H 30 #include <boost/noncopyable.hpp> 39 class SeekableReadStream;
87 #endif // AURORA_ARCHIVE_H
uint64 hash
The resource's hashed name.
uint32 findResource(uint64 hash) const
Return the index of the resource matching the hash, or 0xFFFFFFFF if not found.
A class holding an UTF-8 string.
Common::UString name
The resource's name.
virtual const ResourceList & getResources() const =0
Return the list of resources.
virtual uint32 getResourceSize(uint32 index) const
Return the size of a resource.
std::list< Resource > ResourceList
virtual Common::HashAlgo getNameHashAlgo() const
Return with which algorithm the name is hashed.
HashAlgo
The algorithm used for hashing.
Low-level type definitions to handle fixed width types portably.
A resource within the archive.
Basic type definitions to handle files used in BioWare's Aurora engine.
FileType type
The resource's type.
virtual Common::SeekableReadStream * getResource(uint32 index, bool tryNoCopy=false) const =0
Return a stream of the resource's contents.
FileType
Various file types used by the Aurora engine and found in archives.
An abstract file archive.
Interface for a seekable & readable data stream.
uint32 index
The resource's local index within the archive.