Class StepVariableValue
- Namespace
- Hi.MachiningSteps
- Assembly
- HiMech.dll
The values a step variable written onto a step can hold in the step cache (the
brief-into-DB chain's C4c): a number of any numeric type, stored as a double (a bool as
1 / 0, as the step-property registry reads it), or a string; anything else is not stored.
A value written as an int reads back as a double, in memory and from the
store alike.
public static class StepVariableValue
- Inheritance
-
StepVariableValue
- Inherited Members
Methods
AsDouble(object)
A stored value as a number: a double as itself, a string (and null) as no value.
public static double? AsDouble(object stored)
Parameters
storedobjectThe stored value.
Returns
TryNormalize(object, out object)
The stored form of value: a double for a number or a bool, the
string itself, null for null (a write of null takes the key back).
public static bool TryNormalize(object value, out object stored)
Parameters
valueobjectThe value as written.
storedobjectThe stored form; null when
valueis null or not storable.
Returns
- bool
false when the value is of a type a step cannot hold.