Table of Contents

Class FloatTagSetupSyntax

Namespace
Hi.NcParsers.Syntaxs.Derived
Assembly
HiMech.dll

TagSetupSyntax that parses numeric literal values to double. Variable text (e.g. Q2, #1, [#1+#2]) remains as string.

public class FloatTagSetupSyntax : TagSetupSyntax, INcSyntax
Inheritance
FloatTagSetupSyntax
Implements
Inherited Members
Extension Methods

Constructors

FloatTagSetupSyntax(IEnumerable<string>, IEnumerable<string>, string)

public FloatTagSetupSyntax(IEnumerable<string> categoryPath, IEnumerable<string> tags, string variableTag)

Parameters

categoryPath IEnumerable<string>
tags IEnumerable<string>
variableTag 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

ToSetupJsonNode(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 ToSetupJsonNode(string setup)

Parameters

setup string

Returns

JsonNode