25 #ifndef AURORA_BIFFILE_H 26 #define AURORA_BIFFILE_H 38 class SeekableReadStream;
123 #endif // AURORA_BIFFILE_H void load(Common::SeekableReadStream &bif)
Class to hold resource data information of a BIF file.
IResourceList _iResources
Internal list of resource offsets and sizes.
uint32 size
The resource's size.
Class to hold resource index information of a KEY file.
A simple scoped smart pointer template.
void readVarResTable(Common::SeekableReadStream &bif, uint32 offset)
void mergeKEY(const KEYFile &key, uint32 dataFileIndex)
Merge information from the KEY into the data file.
std::list< Resource > ResourceList
Base for BioWare's Aurora engine files.
Low-level type definitions to handle fixed width types portably.
Internal resource information.
const IResource & getIResource(uint32 index) const
uint32 offset
The offset of the resource within the BIF.
const ResourceList & getResources() const
Return the list of resources.
Basic type definitions to handle files used in BioWare's Aurora engine.
BIFFile(Common::SeekableReadStream *bif)
Take over this stream and read a BIF file out of it.
FileType type
The resource's type.
An abstract KEY data file (BIF or BZF).
ResourceList _resources
External list of resource names and types.
Common::SeekableReadStream * getResource(uint32 index, bool tryNoCopy=false) const
Return a stream of the resource's contents.
Base class for most files found in games using BioWare's Aurora engine.
FileType
Various file types used by the Aurora engine and found in archives.
uint32 getResourceSize(uint32 index) const
Return the size of a resource.
std::vector< IResource > IResourceList
Interface for a seekable & readable data stream.
Common::ScopedPtr< Common::SeekableReadStream > _bif