public TaskDataMapper(string dataPath, Properties properties) { BaseFolder = dataPath; RepresentationMapper = new RepresentationMapper(); DDIs = DdiLoader.Ddis; Properties = properties; DeviceOperationTypes = new DeviceOperationTypes(); InstanceIDMap = new InstanceIDMap(); Errors = new List <IError>(); }
public const string ExportVersion = "ExportVersion"; //Version "3" or "4" public TaskDataMapper(string dataPath, Properties properties) { BaseFolder = dataPath; RepresentationMapper = new RepresentationMapper(); DDIs = DdiLoader.Ddis; Properties = properties ?? new Properties(); DeviceOperationTypes = new DeviceOperationTypes(); InstanceIDMap = new InstanceIDMap(); Errors = new List <IError>(); //Export version string exportVersion = Properties.GetProperty(ExportVersion); if (Int32.TryParse(exportVersion, out int version)) { Version = version; //3 or 4 } if (version != 3 && version != 4) { Version = 4; //Default ISO Version for the export } }