[Overview][Classes][Index] Reference for unit 'resourcetree' (#fcl-res)

TResourceTreeNode

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Abstract class representing a resource tree node.

Declaration

Source position: resourcetree.pp line 29

type TResourceTreeNode = class

protected

  fParent: TResourceTreeNode;

  fNamedEntries: TFPList;

  fIDEntries: TFPList;

  fSubDirRVA: LongWord;

  fDataRVA: LongWord;

  fNameRva: LongWord;

  fDesc: TResourceDesc;

  function GetNamedCount;

  function GetNamedEntry();

  function GetIDCount;

  function GetIDEntry();

  function GetData; virtual;

  function InternalFind();

  constructor Create; virtual; overload;

  property Parent: TResourceTreeNode; [r]

public

  destructor Destroy; override;

  

Destroys the object.

  procedure Add(); virtual; abstract;

  

Adds a new resource to the tree

  function CreateSubNode(); virtual; abstract;

  

Creates a subnode

  function CreateResource; virtual;

  

Creates a new resource

  procedure Clear;

  

Destroys all sub nodes

  function Remove();

  

Removes a resource from the tree

  function Find();

  

Searches for a resource

  function FindFreeID(); virtual;

  

Find a free ID to be used as a resource name

  function IsLeaf; virtual;

  

Reports whether the node is a leaf node.

  property Desc: TResourceDesc; [r]

  

The description of the node

  property NamedCount: LongWord; [r]

  

The number of named sub nodes of the node

  property NamedEntries []: TResourceTreeNode; [r]

  

Indexed array of named sub nodes of the node

  property IDCount: LongWord; [r]

  

The number of ID sub nodes of the node

  property IDEntries []: TResourceTreeNode; [r]

  

Indexed array of ID sub nodes of the node

  property NameRVA: LongWord; [rw]

  

To be used by readers and writers

  property SubDirRVA: LongWord; [rw]

  

To be used by readers and writers

  property DataRVA: LongWord; [rw]

  

To be used by readers and writers

  property Data: TAbstractResource; [r]

  

The resource contained in this node

end;

Inheritance

TResourceTreeNode

  

Abstract class representing a resource tree node.

|

TObject

Description

This class represents a node in a resource tree.

Remark: An object of this class should never be directly instantiated. To create a node, call CreateSubNode method of an already existing node.

Documentation generated on: Sep 28 2017