Class TObjectDefinition

DescriptionHierarchyFieldsMethodsProperties

Unit

ObjectDefinition

Declaration

type TObjectDefinition = class(TObject)

Description

Class for storing information gathered during the parsing of definition files to allow for easy access to each parsed object. TObjectDefinition is usually accessed (and processed) in all procedures named LoadFromDefinition (see for instance TBehavior.LoadFromDefinition).

Hierarchy

TObjectDefinition > TObject

Methods

Overview

Public constructor Create;
Public destructor Destroy; override;
Public procedure AddChild(Obj: TObjectDefinition);
Public procedure AppendObjects(Obj: TObjectDefinition);
Public procedure Assign(Obj: TObjectDefinition);
Public function FindChild(ObjectName: string): TObjectDefinition;
Public function HasProperty(Name: string): Boolean;
Public function PropertyAsBoolean(PropertyName: string): Boolean;
Public function PropertyAsFloat(PropertyName: string): real;
Public function PropertyAsInteger(PropertyName: string): Integer;
Public function PropertyAsString(PropertyName: string): string;
Public function PropertyAsStrings(PropertyName: string): TStringList;
Public procedure PropertyToVector(PropertyName: string; V: TIntegerVector); overload;
Public procedure PropertyToVector(PropertyName: string; V: TVector); overload;

Description

Public constructor Create;

Constructor.

Public destructor Destroy; override;

Destructor.

Public procedure AddChild(Obj: TObjectDefinition);
 
Public procedure AppendObjects(Obj: TObjectDefinition);
 
Public procedure Assign(Obj: TObjectDefinition);
 
Public function FindChild(ObjectName: string): TObjectDefinition;
 
Public function HasProperty(Name: string): Boolean;
 
Public function PropertyAsBoolean(PropertyName: string): Boolean;
 
Public function PropertyAsFloat(PropertyName: string): real;
 
Public function PropertyAsInteger(PropertyName: string): Integer;
 
Public function PropertyAsString(PropertyName: string): string;
 
Public function PropertyAsStrings(PropertyName: string): TStringList;
 
Public procedure PropertyToVector(PropertyName: string; V: TIntegerVector); overload;
 
Public procedure PropertyToVector(PropertyName: string; V: TVector); overload;
 

Properties

Overview

Public property Children[i: Integer]: TObjectDefinition;
Public property HasChildren: Boolean;
Public property Name: string;
Public property NameOfClass: string;
Public property NumberOfChildren: Integer;
Public property NumberOfProperties: Integer;
Public property Properties[i: Integer]: TObjectProperty;
Public property PropertyList: TObjectPropertyList;
Public property PropertySourceBlock: TStringList;
Public property TotalNumberOfChildren: Integer;

Description

Public property Children[i: Integer]: TObjectDefinition;
 
Public property HasChildren: Boolean;
 
Public property Name: string;

Name of the parsed object.

Public property NameOfClass: string;

Name of parsed object's class.

Public property NumberOfChildren: Integer;

Number of immediate children contained in this object, not counting childs of children.

Public property NumberOfProperties: Integer;
 
Public property Properties[i: Integer]: TObjectProperty;
 
Public property PropertyList: TObjectPropertyList;
 
Public property PropertySourceBlock: TStringList;
 
Public property TotalNumberOfChildren: Integer;

Number of children in this object, including the number of childs in the children.


Generated by PasDoc 0.8.8.3 on 2005-05-28 08:13:49