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

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

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: