Sign in Join
FPDoc Onlineexperiment

RttiUtils unit

RTTI utility functions.

The rttiutils unit is a unit providing simplified access to the RTTI information from published properties using the TPropInfoList class. This access can be used when saving or restoring form properties at runtime, or for persisting other objects whose RTTI is available: the TPropsStorage class can be used for this. The implementation is based on the apputils unit from RXLib by AO ROSNO and Master-Bank

Classes and records

TPropInfoListclassClass for keeping property information.
TPropsStorageclassProperty storage mechanism.

Procedures and functions

CreateStoredItemfunctionConcatenates component and property name.
ParseStoredItemfunctionSplit a property reference to component reference and property name.
UpdateStoredListprocedureUpdate a stringlist with object references.

Types

TEraseSectEventprocedure typeClear a storage section.
TFindComponentEventprocedure typeEvent callback to locate a component instance.
TPropStorageOptionenumerationType to enumerate several options for propstorage.
TPropStorageOptionssetSet of TPropStorageOption.
TReadStrEventprocedure typeCallback to read strings from storage.
TWriteStrEventprocedure typeWrite a string to storage.

Constants

sPropNameDelimiterconstantSeparator used when constructing section/key names.

Variables

FindGlobalComponentCallBackvariableCallback used when component references must be resolved.

Uses

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