Table of Contents

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

categoryPath IEnumerable<string>
tags IEnumerable<string>
variableTag string

FloatTagValueSyntax(XElement)

public FloatTagValueSyntax(XElement src)

Parameters

src XElement

Properties

XName

public static string XName { get; }

Property Value

string

Methods

ToFloat(string)

Parses a numeric literal to double; returns the original string for variable text.

public static JsonNode ToFloat(string setup)

Parameters

setup string

Returns

JsonNode

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

setup string

Returns

JsonNode