32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
using DTS.Common.Classes.Sensors;
|
|
using DTS.Common.Enums.Sensors;
|
|
using DTS.Common.Import.ImportOptions;
|
|
using DTS.Common.Import.Interfaces;
|
|
|
|
namespace DTS.Common.Import.Parsers.CSV
|
|
{
|
|
public abstract class AbstractCSVParser : IParseCSVSensor
|
|
{
|
|
public abstract int Version { get; }
|
|
protected ICalibrationImport _calibrationImport;
|
|
protected ZeroMethodOptions _zeroMethodOptions;
|
|
protected IImportNotification _importNotification;
|
|
protected bool ImportCreateDynamicGroups { get; set; }
|
|
protected bool UseISOCodeFilterMapping { get; set; }
|
|
protected bool UseZeroForUnfiltered { get; set; }
|
|
public void Initialize(ICalibrationImport import, ZeroMethodOptions zmOptions,
|
|
IImportNotification importNotification, bool importCreateDynamicGroups,
|
|
bool useISOCodeFilterMapping, bool useZeroForUnfiltered)
|
|
{
|
|
_calibrationImport = import;
|
|
_zeroMethodOptions = zmOptions;
|
|
_importNotification = importNotification;
|
|
ImportCreateDynamicGroups = importCreateDynamicGroups;
|
|
UseISOCodeFilterMapping = useISOCodeFilterMapping;
|
|
UseZeroForUnfiltered = useZeroForUnfiltered;
|
|
}
|
|
|
|
public abstract void ParseVersion(CSVImportTags.Tags field, string val, ParseParameters pp);
|
|
}
|
|
}
|