IROCustomStreamableClass

Overview

The IROCustomStreamableClass interface is an extended version of the IROCustomStreamableType which is designed to maintain the serialization ability. The IROCustomStreamableClass interface introduces support for Run-Time Type Information or Reflection, which is needed to store/restore a state of an object instance.

Location

 

Attributes

property Attributes: TStrings read write

CanImplementType    (declared in IROCustomStreamableType)

function CanImplementType(const aName: string): boolean

Parameters:

  • aName:

IsNull

Identifies if this instance is a null.

function IsNull: boolean

Read    (declared in IROCustomStreamableType)

Retrieves an object state named aName from aSerializer into this instance.

procedure Read(aSerializer: TROSerializer; const aName: string; ArrayElementId: integer)

Parameters:

  • aSerializer: Serializer used to restore an object state.
  • aName: Object state identifier.
  • ArrayElementId:

SetNull

Marks this instance as a null.

procedure SetNull(aIsNull: boolean)

Parameters:

  • aIsNull: value

TypeName    (declared in IROCustomStreamableType)

property TypeName: string read write

Write    (declared in IROCustomStreamableType)

Stores a state of this instance designated as aName into aSerializer.

procedure Write(aSerializer: TROSerializer; const aName: string; ArrayElementId: integer)

Parameters:

  • aSerializer: Serializer used to store an object state.
  • aName: Object state identifier.
  • ArrayElementId:

 

Attributes

property Attributes: TStrings read write

TypeName    (declared in IROCustomStreamableType)

property TypeName: string read write

 

CanImplementType    (declared in IROCustomStreamableType)

function CanImplementType(const aName: string): boolean

Parameters:

  • aName:

IsNull

Identifies if this instance is a null.

function IsNull: boolean

Read    (declared in IROCustomStreamableType)

Retrieves an object state named aName from aSerializer into this instance.

procedure Read(aSerializer: TROSerializer; const aName: string; ArrayElementId: integer)

Parameters:

  • aSerializer: Serializer used to restore an object state.
  • aName: Object state identifier.
  • ArrayElementId:

SetNull

Marks this instance as a null.

procedure SetNull(aIsNull: boolean)

Parameters:

  • aIsNull: value

Write    (declared in IROCustomStreamableType)

Stores a state of this instance designated as aName into aSerializer.

procedure Write(aSerializer: TROSerializer; const aName: string; ArrayElementId: integer)

Parameters:

  • aSerializer: Serializer used to store an object state.
  • aName: Object state identifier.
  • ArrayElementId:

Descendants

See Also