TPropsStorage class
Property storage mechanism.
Declaration
TPropsStorage = class(TObject)Inheritance
- TPropsStorage
- TObject
Description
TPropsStorage provides a mechanism to store properties from
any class which has published properties (usually a
TPersistent
descendent) in a storage mechanism.
TPropsStorage does not handle the storage by itself, instead,
the storage is handled through a series of callbacks to read and/or write
strings. Conversion of property types to string is handled by
TPropsStorage itself: all that needs to be done is set the 3
handlers. The storage mechanism is assumed to have the structure of an
.ini file : sections with key/value pairs. The three callbacks should take
this into account, but they do not need to create an actual .ini file.
See also
Properties
Options | public | Options to take into account when saving or loading properties from the storage. |
AObject | public | Object to load or store properties from. |
Prefix | public | Prefix to use in storage. |
Section | public | Section name for storage. |
Methods
ReadString | protected | |
WriteString | protected | |
EraseSection | protected | |
GetItemName | protected | |
CreateStorage | protected | |
StoreAnyProperty | public | Store a property value. |
LoadAnyProperty | public | Load a property value. |
StoreProperties | public | Store a list of properties. |
LoadProperties | public | Load a list of properties. |
LoadObjectsProps | public | Load a list of component properties. |
StoreObjectsProps | public | Store a list of component properties. |
Events
OnReadString | public | Read a string value from storage. |
OnWriteString | public | Write a string value to storage. |
OnEraseSection | public | Erase a section in storage. |
Inherited
From TObject (42)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance Create DefaultHandler DefaultHandlerStr Destroy Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
