CSV like PDSF ready to test
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Adaptation.FileHandlers.QS408M;
|
||||
|
||||
#nullable enable
|
||||
@ -7,15 +5,13 @@ namespace Adaptation.FileHandlers.QS408M;
|
||||
public class Body
|
||||
{
|
||||
|
||||
public Body(List<Site> sites, string waferMeanThickness, string stdDev, string passFail)
|
||||
public Body(string waferMeanThickness, string stdDev, string passFail)
|
||||
{
|
||||
Sites = sites;
|
||||
WaferMeanThickness = waferMeanThickness;
|
||||
StdDev = stdDev;
|
||||
PassFail = passFail;
|
||||
}
|
||||
|
||||
public List<Site> Sites { get; }
|
||||
public string WaferMeanThickness { get; }
|
||||
public string StdDev { get; }
|
||||
public string PassFail { get; }
|
||||
@ -44,7 +40,7 @@ public class Body
|
||||
return flag;
|
||||
}
|
||||
|
||||
private static string GetToken(string text, int[] i)
|
||||
internal static string GetToken(string text, int[] i)
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
@ -71,25 +67,11 @@ public class Body
|
||||
internal static Body? Get(string text, int[] i)
|
||||
{
|
||||
Body? result;
|
||||
Site site;
|
||||
string thickness;
|
||||
List<Site> sites = new();
|
||||
string position = GetToken(text, i);
|
||||
while (true)
|
||||
{
|
||||
if (string.IsNullOrEmpty(position) || !char.IsDigit(position[0]))
|
||||
break;
|
||||
thickness = GetToken(text, i);
|
||||
site = new(position, thickness);
|
||||
sites.Add(site);
|
||||
position = GetToken(text, i);
|
||||
}
|
||||
i[0] = Complete.ScanPast(text, i, "mean thickness =");
|
||||
string meanThickness = Complete.GetBefore(text, i, ", std. dev =");
|
||||
i[0] = Run.ScanPast(text, i, "mean thickness =");
|
||||
string meanThickness = Run.GetBefore(text, i, ", std. dev =");
|
||||
string stdDev = GetToken(text, i);
|
||||
string passFail = Complete.GetToEOL(text, i);
|
||||
result = new(sites,
|
||||
meanThickness,
|
||||
string passFail = Run.GetToEOL(text, i);
|
||||
result = new(meanThickness,
|
||||
stdDev,
|
||||
passFail);
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user