Skip to content
Start free evaluation

PDComm.GemReportBinding

Class

Represents a binding from a report variable ID (VID) to the source of its value.

public sealed record GemReportBinding

Different VIDs can bind to the same source, but each VID can appear only once. Nonnegative signed and unsigned constant IDs compare equal.

Parameters

NameDescription
VidThe variable ID (VID) used in report definitions.
SourceKindThe kind of value source.
SourceIdThe status variable ID or data variable ID; must be 0 for GemDataSourceKind.Constant.
ConstantIdFor GemDataSourceKind.Constant, the equipment constant ID (ECID) as an ASCII item or a single-element integer item; otherwise null. The configuring call copies the item; the caller keeps ownership.

Members

GemReportBinding

Constructor

Represents a binding from a report variable ID (VID) to the source of its value.

public GemReportBinding(uint Vid, GemDataSourceKind SourceKind, uint SourceId, SecsItem? ConstantId)

Different VIDs can bind to the same source, but each VID can appear only once. Nonnegative signed and unsigned constant IDs compare equal.

Parameters

NameDescription
VidThe variable ID (VID) used in report definitions.
SourceKindThe kind of value source.
SourceIdThe status variable ID or data variable ID; must be 0 for GemDataSourceKind.Constant.
ConstantIdFor GemDataSourceKind.Constant, the equipment constant ID (ECID) as an ASCII item or a single-element integer item; otherwise null. The configuring call copies the item; the caller keeps ownership.

ConstantId

Property

For GemDataSourceKind.Constant, the equipment constant ID (ECID) as an ASCII item or a single-element integer item; otherwise null. The configuring call copies the item; the caller keeps ownership.

public SecsItem? ConstantId { get; init; }

SourceId

Property

The status variable ID or data variable ID; must be 0 for GemDataSourceKind.Constant.

public uint SourceId { get; init; }

SourceKind

Property

The kind of value source.

public GemDataSourceKind SourceKind { get; init; }

Vid

Property

The variable ID (VID) used in report definitions.

public uint Vid { get; init; }