ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Stark::Formats::BiffArchive Class Reference

A tree-style container for BiffObjects. More...

#include <biff.h>

Collaboration diagram for Stark::Formats::BiffArchive:

List of all members.

Public Types

typedef BiffObject *(* ObjectBuilder )(uint32 type)

Public Member Functions

 BiffArchive (ArchiveReadStream *stream, ObjectBuilder objectBuilder)
 ~BiffArchive ()
Common::Array< BiffObject * > listObjects ()
 List the objects at the root level of the archive.
template<class T >
Common::Array< T * > listObjectsRecursive ()
 List objects recursively matching the template parameter type.

Private Member Functions

void read (ArchiveReadStream *stream)
BiffObjectreadObject (ArchiveReadStream *stream, BiffObject *parent)

Private Attributes

ObjectBuilder _objectBuilder
uint32 _version
Common::Array< BiffObject * > _rootObjects

Detailed Description

A tree-style container for BiffObjects.

Users of this class must provide a factory method for the BiffObject subclasses contained in the archive. This class can only read the archive's structure and not specific object types.

Definition at line 44 of file biff.h.

Member Typedef Documentation

Definition at line 46 of file biff.h.

Constructor & Destructor Documentation

Stark::Formats::BiffArchive::BiffArchive ( ArchiveReadStream stream,
ObjectBuilder  objectBuilder 

Definition at line 30 of file biff.cpp.

Stark::Formats::BiffArchive::~BiffArchive (  ) 

Definition at line 35 of file biff.cpp.

Member Function Documentation

Common::Array< BiffObject * > Stark::Formats::BiffArchive::listObjects (  ) 

List the objects at the root level of the archive.

Definition at line 95 of file biff.cpp.

template<class T >
Common::Array< T * > Stark::Formats::BiffArchive::listObjectsRecursive (  ) 

List objects recursively matching the template parameter type.

Definition at line 105 of file biff.h.

void Stark::Formats::BiffArchive::read ( ArchiveReadStream stream  )  [private]

Definition at line 41 of file biff.cpp.

BiffObject * Stark::Formats::BiffArchive::readObject ( ArchiveReadStream stream,
BiffObject parent 
) [private]

Definition at line 59 of file biff.cpp.

Member Data Documentation

Definition at line 62 of file biff.h.

Definition at line 63 of file biff.h.

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

Generated on Sat Jan 12 2019 05:05:15 for ResidualVM by doxygen 1.7.1
curved edge   curved edge