Sign in Join
FPDoc Onlineexperiment

TAbstractResourceReader.GetTree function

Member of TAbstractResourceReaderprotectedIn unit resource

Gets the internal resource tree of a TResources object

Declaration

pascal
function GetTree(aResources: TResources): TObject

Arguments

aResources

The TResources object whose tree must be returned

Function result

The resource tree. It is an instance of TRootResTreeNode.

Description

This protected method can be used by descendents of TAbstractResourceReader to obtain the internal resource tree used by a TResources object. The internal resource tree is an instance of TRootResTreeNode.

Some resource readers can improve their performance if, instead of calling Add, add themselves resources to the internal tree used by a TResources object.

After adding a resource to a resource tree, a reader must always call AddNoTree method to let the TResources object know about the newly-added resource.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.