Class MapSingleCsvConfig
Column titles of the CSV file read by MapSingleByCsvFile(ClStrip, string, string, IProgress<IMessage>, Func<DateTime, TimeSpan>, MapSingleCsvConfig) (the one-step-one-data mapping). One tag per column the reader looks up, each defaulting to the MappingUtil title the step-file writer emits, so a default instance reads exactly what the reader read before the titles became configurable. A blank tag falls back to that default.
public class MapSingleCsvConfig : IMakeXmlSource
- Inheritance
-
MapSingleCsvConfig
- Implements
- Inherited Members
- Extension Methods
Remarks
The reader takes the step time from the first usable source in this order: ActualTimecodeTag (with the optional ActualDateTimeTag companion), then ActualTimeTag, then SimTimeTag. A controller log that carries one time column is mapped by naming it in ActualTimeTag, whose cell may be a timecode or an absolute date-time. Every column no tag names is embedded onto the steps under its own title.
Constructors
MapSingleCsvConfig()
Default constructor.
public MapSingleCsvConfig()
MapSingleCsvConfig(XElement)
Constructor from XML. An absent element keeps its default tag.
public MapSingleCsvConfig(XElement src)
Parameters
srcXElementXML element;
nullyields the defaults
Properties
ActualDateTimeTag
Title of the absolute controller-instant column that accompanies ActualTimecodeTag. Optional.
public string ActualDateTimeTag { get; set; }
Property Value
ActualTimeTag
Title of the single actual-time column (a timecode or an absolute date-time cell); the second time source tried.
public string ActualTimeTag { get; set; }
Property Value
ActualTimecodeTag
Title of the run-relative actual timecode column; the first time source tried.
public string ActualTimecodeTag { get; set; }
Property Value
FileNoTag
Title of the (1-based) file number column. Required.
public string FileNoTag { get; set; }
Property Value
LineNoTag
Title of the (1-based) line number column. Required.
public string LineNoTag { get; set; }
Property Value
MachineCoordinatePrefix
Prefix of the machine-coordinate columns, composed as the prefix plus
X, Y, Z, A, B, C.
public string MachineCoordinatePrefix { get; set; }
Property Value
SimTimeTag
Title of the simulated end-timecode column; the last time source tried. Left at its default, the legacy SimTimeTagLegacy title is accepted too.
public string SimTimeTag { 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
baseDirectorystringThe base directory for resolving relative paths
relFilestringThe relative file path for the XML source
exhibitionOnlyboolif 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.