ScummVM API documentation
Stark::Formats::BiffObject Class Referenceabstract

#include <biff.h>

Inheritance diagram for Stark::Formats::BiffObject:
Stark::Formats::Texture

Public Member Functions

virtual void readData (ArchiveReadStream *stream, uint32 dataLength)=0
 
uint32 getType () const
 
template<class T >
Common::Array< T * > listChildrenRecursive ()
 
void addChild (BiffObject *child)
 

Protected Attributes

uint32 _type
 
uint32 _u3
 
uint32 _version
 
BiffObject_parent
 
Common::Array< BiffObject * > _children
 

Detailed Description

An object which can be read from a BiffArchive

Each object has a list of children objects, resulting in a tree structure

Member Function Documentation

◆ readData()

virtual void Stark::Formats::BiffObject::readData ( ArchiveReadStream stream,
uint32  dataLength 
)
pure virtual

Used to read the object data from the stream

Implemented in Stark::Formats::Texture.

◆ getType()

uint32 Stark::Formats::BiffObject::getType ( ) const

Get the object type

◆ listChildrenRecursive()

template<class T >
Common::Array< T * > Stark::Formats::BiffObject::listChildrenRecursive ( )

List children recursively matching the template parameter type

◆ addChild()

void Stark::Formats::BiffObject::addChild ( BiffObject child)

Add an object to the children list


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