25 #ifndef AURORA_HERFFILE_H 26 #define AURORA_HERFFILE_H 39 class SeekableReadStream;
103 #endif // AURORA_HERFFILE_H uint32 _dictOffset
The offset of the dict file (if available).
Common::HashAlgo getNameHashAlgo() const
Return with which algorithm the name is hashed.
Common::SeekableReadStream * getResource(uint32 index, bool tryNoCopy=false) const
Return a stream of the resource's contents.
uint32 getResourceSize(uint32 index) const
Return the size of a resource.
Internal resource information.
Class to hold resource data of an HERF archive file.
Handling various archive files.
A simple scoped smart pointer template.
const IResource & getIResource(uint32 index) const
Common::ScopedPtr< Common::SeekableReadStream > _herf
void readDictionary(Common::SeekableReadStream &herf, std::map< uint32, Common::UString > &dict)
std::list< Resource > ResourceList
const ResourceList & getResources() const
Return the list of resources.
HashAlgo
The algorithm used for hashing.
Low-level type definitions to handle fixed width types portably.
HERFFile(Common::SeekableReadStream *herf)
Take over this stream and read an HERF file out of it.
void readResList(Common::SeekableReadStream &herf)
ResourceList _resources
External list of resource names and types.
void load(Common::SeekableReadStream &herf)
uint32 size
The resource's size.
Basic type definitions to handle files used in BioWare's Aurora engine.
IResourceList _iResources
Internal list of resource offsets and sizes.
uint32 offset
The offset of the resource within the HERF.
std::vector< IResource > IResourceList
An abstract file archive.
Interface for a seekable & readable data stream.
uint32 _dictSize
The size of the dict file (if available).
void searchDictionary(Common::SeekableReadStream &herf, uint32 resCount)