Sign in Join
FPDoc Onlineexperiment

TCustomPropertyStorage.RestoreProperties procedure

Member of TCustomPropertyStorageprotectedIn unit PropertyStorage

Restores property values from the storage mechanism for the container.

Declaration

pascal
procedure RestoreProperties; virtual

Description

RestoreProperties is a method used to load property values stored in the container, and apply the values to the origin components / persistent object instances. Properties names and the corresponding object instances are loaded using the GetPropertyList and FinishPropertyList methods.

A temporary TPropsStorage instance is created and configured to use RootSection and DoReadString from the class instance. The LoadObjectsProps method is called to get the property values and apply them to the object instances for the property list.

Some of the methods called in RestoreProperties are declared as abstract virtual methods in TCustomPropertyStorage, like: GetPropertyList, FinishPropertyList, and DoReadString. They must be implemented in a descendent class to use the specific storage format for its container.

See also

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