Struct StepVariableWrite
- Namespace
- Hi.MachiningSteps
- Assembly
- HiMech.dll
One write of a batch of step-variable values (WriteStepVariables(IReadOnlyList<StepVariableWrite>)): the step, the key and the value — a number (stored as a double) or a string, or null to take the key back off the step. The brief-into-DB chain's C4c.
public readonly record struct StepVariableWrite : IEquatable<StepVariableWrite>
- Implements
- Inherited Members
- Extension Methods
Constructors
StepVariableWrite(int, string, object)
One write of a batch of step-variable values (WriteStepVariables(IReadOnlyList<StepVariableWrite>)): the step, the key and the value — a number (stored as a double) or a string, or null to take the key back off the step. The brief-into-DB chain's C4c.
public StepVariableWrite(int StepIndex, string Key, object Value)
Parameters
StepIndexintThe step index.
KeystringThe step variable's key.
ValueobjectThe value (StepVariableValue); null deletes the step's row under the key.
Fields
SegmentLength
The writes a caller hands the host at a time — one transaction a segment: a mapping, a training or a script writing many steps keeps a transaction to this many rows.
public const int SegmentLength = 4096
Field Value
Properties
Key
The step variable's key.
public string Key { get; init; }
Property Value
StepIndex
The step index.
public int StepIndex { get; init; }
Property Value
Value
The value (StepVariableValue); null deletes the step's row under the key.
public object Value { get; init; }