Record TSCUxSizeRecordHelper

Hierarchy
Fields
Properties

Unit

Declaration

type TSCUxSizeRecordHelper = record helper for TSCUxSizeRecord

Description

 

Overview

Methods

Public class function GetIntValue(const ASize: TSCUSize): Integer; static;
Public class function GetSizeValue(const AValue: Integer): TSCUSize; static;
Public class function IsValidSizeValue(const AValue: Integer): Boolean; static;
Public class function GetSCUxSizeFromSCU(const InputSCU: Integer; const MaxSize: Integer): TSCUxSizeRecord; static; overload;
Public class function GetSCUxSizeFromSCU(const InputSCU: Integer; const MaxSize: TSCUSize): TSCUxSizeRecord; static; overload;
Public class procedure SetSCUxSizeFromSCU(const InputSCU: Integer; const MaxSize: Integer; var ASCUxSize: TSCUxSizeRecord); static; overload;
Public class procedure SetSCUxSizeFromSCU(const InputSCU: Integer; const MaxSize: TSCUSize; var ASCUxSize: TSCUxSizeRecord); static; overload;

Description

Methods

Public class function GetIntValue(const ASize: TSCUSize): Integer; static;

Returns the integer value associated with a TSCUSize (e.g. eSCUSize32 -> 32).

Public class function GetSizeValue(const AValue: Integer): TSCUSize; static;

Returns the TSCUSize associated with an Integer (e.g. 32 -> eSCUSize32). Generates an error if the input is invalid.

Public class function IsValidSizeValue(const AValue: Integer): Boolean; static;

Returns True if an Integer has an associated TSCUSize, False otherwise.

Public class function GetSCUxSizeFromSCU(const InputSCU: Integer; const MaxSize: Integer): TSCUxSizeRecord; static; overload;

Returns a TSCUxSizeRecord initialised with the number of crates needed to reach InputSCU, limited to sizes less than or equal to MaxSize.

Public class function GetSCUxSizeFromSCU(const InputSCU: Integer; const MaxSize: TSCUSize): TSCUxSizeRecord; static; overload;

Returns a TSCUxSizeRecord initialised with the number of crates needed to reach InputSCU, limited to sizes less than or equal to MaxSize.

Public class procedure SetSCUxSizeFromSCU(const InputSCU: Integer; const MaxSize: Integer; var ASCUxSize: TSCUxSizeRecord); static; overload;

Initialise the TSCUxSizeRecord with the number of crates needed to reach InputSCU, limited to sizes less than or equal to MaxSize.

Public class procedure SetSCUxSizeFromSCU(const InputSCU: Integer; const MaxSize: TSCUSize; var ASCUxSize: TSCUxSizeRecord); static; overload;

Initialise the TSCUxSizeRecord with the number of crates needed to reach InputSCU, limited to sizes less than or equal to MaxSize.