PDComm.GemReportBinding
Class
Represents a binding from a report variable ID (VID) to the source of its value.
public sealed record GemReportBindingDifferent VIDs can bind to the same source, but each VID can appear only once. Nonnegative signed and unsigned constant IDs compare equal.
Parameters
| Name | Description |
|---|---|
Vid | The variable ID (VID) used in report definitions. |
SourceKind | The kind of value source. |
SourceId | The status variable ID or data variable ID; must be 0 for GemDataSourceKind.Constant. |
ConstantId | 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. |
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
| Name | Description |
|---|---|
Vid | The variable ID (VID) used in report definitions. |
SourceKind | The kind of value source. |
SourceId | The status variable ID or data variable ID; must be 0 for GemDataSourceKind.Constant. |
ConstantId | 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. |
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; }