Class FloatTagValueSyntax
- Namespace
- Hi.NcParsers.ParsingSyntaxs
- Assembly
- HiMech.dll
TagValueSyntax that parses numeric literal values to double. Variable text (e.g. Q2, #1, [#1+#2]) remains as string.
public class FloatTagValueSyntax : TagValueSyntax, ISituNcSyntax, INcSyntax, IMakeXmlSource
- Inheritance
-
FloatTagValueSyntax
- Implements
- Inherited Members
- Extension Methods
Constructors
FloatTagValueSyntax(IEnumerable<string>, IEnumerable<string>, string)
public FloatTagValueSyntax(IEnumerable<string> categoryPath, IEnumerable<string> tags, string variableTag)
Parameters
categoryPathIEnumerable<string>tagsIEnumerable<string>variableTagstring
FloatTagValueSyntax(XElement)
public FloatTagValueSyntax(XElement src)
Parameters
srcXElement
Properties
XName
public static string XName { get; }
Property Value
Methods
ToFloat(string)
Parses a numeric literal to double; returns the original string for variable text.
public static JsonNode ToFloat(string setup)
Parameters
setupstring
Returns
ToValueJsonNode(string)
Converts a tag setup string value to a JsonNode. Override in derived classes for typed parsing (int, double). Variable text (e.g. Q2, #1, [#1+#2]) is kept as string.
protected override JsonNode ToValueJsonNode(string setup)
Parameters
setupstring