TRecall class
Helper class for storing published properties.
Declaration
TRecall = class(TObject)Inheritance
- TRecall
- TObject
Description
TRecall is a helper class used to copy published
properties of a class (the reference object) in another class
(the storage object). The reference object and storage object must be
assignable to each other.
The TRecall can be used to store the state of a persistent class,
and restore it at a later time.
When a TRecall object is created, it gets passed a reference
instance and a storage instance. It immediately stores the properties of
the reference object in the storage object.
The Store method can be called throughout the lifetime of the reference object to update the stored properties.
When the TRecall instance is destroyed then the properties are
copied from the storage object to the reference object. The storage object
is freed automatically.
If the properties should not be copied back from the storage to the reference object, the Forget can be called.
See also
Properties
Reference | public | The reference object. |
Methods
Create | public | Creates a new instance of TRecall. |
Destroy | public | Copies the stored properties to the reference object and destroys the TRecall instance. |
Store | public | Assigns the reference instance to the storage instance. |
Forget | public | Clear the reference property. |
Inherited
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr 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.
