Class TSerializationProcess

Unit

Declaration

type TSerializationProcess = class abstract(TObject)

Description

Call methods of this class within TCastleComponent.CustomSerialization override. Do not create instances of this class yourself.

Hierarchy

  • TObject
  • TSerializationProcess

Overview

Nested Types

Published TListAddEvent = procedure (const NewComponent: TComponent) of object;
Published TListClearEvent = procedure of object;
Published TListEnumerateEvent = procedure (const Proc: TGetChildProc) of object;

Methods

Public procedure ReadWrite(const Key: String; const ListEnumerate: TListEnumerateEvent; const ListAdd: TListAddEvent; const ListClear: TListClearEvent); virtual; abstract;

Description

Nested Types

Published TListAddEvent = procedure (const NewComponent: TComponent) of object;
 
Published TListClearEvent = procedure of object;
 
Published TListEnumerateEvent = procedure (const Proc: TGetChildProc) of object;
 

Methods

Public procedure ReadWrite(const Key: String; const ListEnumerate: TListEnumerateEvent; const ListAdd: TListAddEvent; const ListClear: TListClearEvent); virtual; abstract;

Make a list serialized and deserialized. The definition of list is very flexible here, you provide callbacks that should, when called,

  • enumerate (call other callback for each item),

  • clear all items (that were possibly added by previous deserialization),

  • add new item.

Do not worry about conflict between Key and some published property. We internally "mangle" keys to avoid it.


Generated by PasDoc 0.16.0.