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
XElementXML element
Properties
CutterLocationPrefixTag
Cutter Location Prefix Tag for CSV Parsing.
public string CutterLocationPrefixTag { get; set; }
Property Value
DurationTag
public string DurationTag { get; set; }
Property Value
FeedrateTag_mmdmin
Feedrate for Simulator Tag for CSV Parsing.
public string FeedrateTag_mmdmin { get; set; }
Property Value
LineBeginCsScriptTag
LineBeginCsScript Tag for CSV Parsing.
public string LineBeginCsScriptTag { get; set; }
Property Value
LineEndCsScriptTag
LineEndCsScript Tag for CSV Parsing.
public string LineEndCsScriptTag { get; set; }
Property Value
MachineCoordinatePrefixTag
Machine Coordinate Prefix Tag for CSV Parsing.
public string MachineCoordinatePrefixTag { get; set; }
Property Value
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
SpindleSpeedTag_rpm
Spindle speed for Simulator Tag for CSV Parsing.
public string SpindleSpeedTag_rpm { get; set; }
Property Value
ToolIdTag
Tool ID Tag for CSV Parsing.
public string ToolIdTag { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
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
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
exhibitionOnly
boolif 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.