Table of Contents

Class CsvRunnerConfig

Namespace
Hi.Numerical.FilePlayers
Assembly
HiNc.dll

Configuration class for CSV Runner.

public class CsvRunnerConfig : IMakeXmlSource
Inheritance
CsvRunnerConfig
Implements
Inherited Members
Extension Methods

Constructors

CsvRunnerConfig()

Default constructor.

public CsvRunnerConfig()

CsvRunnerConfig(XElement)

Constructor from XML.

public CsvRunnerConfig(XElement src)

Parameters

src XElement

XML element

Properties

CutterLocationPrefixTag

Cutter Location Prefix Tag for CSV Parsing.

public string CutterLocationPrefixTag { get; set; }

Property Value

string

DurationTag

public string DurationTag { get; set; }

Property Value

string

FeedrateTag_mmdmin

Feedrate for Simulator Tag for CSV Parsing.

public string FeedrateTag_mmdmin { get; set; }

Property Value

string

LineBeginCsScriptTag

LineBeginCsScript Tag for CSV Parsing.

public string LineBeginCsScriptTag { get; set; }

Property Value

string

LineEndCsScriptTag

LineEndCsScript Tag for CSV Parsing.

public string LineEndCsScriptTag { get; set; }

Property Value

string

MachineCoordinatePrefixTag

Machine Coordinate Prefix Tag for CSV Parsing.

public string MachineCoordinatePrefixTag { get; set; }

Property Value

string

ParsingDictionary

Parsing dictionary for custom field parsing. Note: This dictionary cannot be serialized to XML as it contains functions.

public Dictionary<string, Func<string, object>> ParsingDictionary { get; set; }

Property Value

Dictionary<string, Func<string, object>>

SpindleDirectionTag

Spindle direction Tag for CSV Parsing.

public string SpindleDirectionTag { get; set; }

Property Value

string

SpindleSpeedTag_rpm

Spindle speed for Simulator Tag for CSV Parsing.

public string SpindleSpeedTag_rpm { get; set; }

Property Value

string

ToolIdTag

Tool ID Tag for CSV Parsing.

public string ToolIdTag { get; set; }

Property Value

string

XName

Name for XML IO.

public static string XName { get; }

Property Value

string

Methods

MakeXmlSource(string, string, bool)

Creates an XML representation of the object. This method may also generate additional resources such as related files.

public XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)

Parameters

baseDirectory string

The base directory for resolving relative paths

relFile string

The relative file path for the XML source

exhibitionOnly bool

if true, the extended file creation is suppressed.

Returns

XElement

An XML element representing the object's state

Remarks

For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied. The baseDirectory is typically the folder at the nearest configuration file folder. Since the folder can be moving with the configuration file.