IROCustomStreamableEnum

Overview

The IROCustomStreamableEnum interface is used for storing/restoring enums with the help of the TROSerializer. You can see examples for the usage of the IROCustomStreamableEnum interface in the TROStreamSerializer and TROStreamSerializer methods.

Location


 

CanImplementType    (declared in IROCustomStreamableType)

function CanImplementType(const aName: string): Boolean

Parameters:

  • aName:

Name

property Name: string read write

OrigName

property OrigName: string read write

PrefixedName

property PrefixedName: string read write

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:

SetValue

Implements write access to the Value property.

procedure SetValue(aValue: Integer)

Parameters:

  • aValue: The new value for the variable.

TypeName    (declared in IROCustomStreamableType)

property TypeName: string read write

Value

Presents an enum value as byte.

property Value: Integer 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:

 

Name

property Name: string read write

OrigName

property OrigName: string read write

PrefixedName

property PrefixedName: string read write

TypeName    (declared in IROCustomStreamableType)

property TypeName: string read write

Value

Presents an enum value as byte.

property Value: Integer read write

 

CanImplementType    (declared in IROCustomStreamableType)

function CanImplementType(const aName: string): Boolean

Parameters:

  • aName:

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:

SetValue

Implements write access to the Value property.

procedure SetValue(aValue: Integer)

Parameters:

  • aValue: The new value for the variable.

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: