Wafer Summary
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Adaptation.FileHandlers.pcl;
|
||||
|
||||
@ -78,45 +79,6 @@ public class Wafer
|
||||
public string Thruput { get; }
|
||||
public string Recipe { get; }
|
||||
|
||||
// private static bool IsNullOrWhiteSpace(string search)
|
||||
// {
|
||||
// for (int index = 0; index < search.Length; ++index)
|
||||
// {
|
||||
// if (!char.IsWhiteSpace(search[index]))
|
||||
// return false;
|
||||
// }
|
||||
// return true;
|
||||
// }
|
||||
|
||||
// private static bool IsBlankLine(string text, int[] i)
|
||||
// {
|
||||
// int num = text.IndexOf("\n", i[0]);
|
||||
// return IsNullOrWhiteSpace(num > -1 ? text.Substring(i[0], num - i[0]) : text.Substring(i[0]));
|
||||
// }
|
||||
|
||||
// private static string GetToText(string text, int[] i, string search) =>
|
||||
// text.Substring(i[0], text.IndexOf(search, i[0]) - i[0]).Trim();
|
||||
|
||||
// private static string GetToken(string text, int[] i)
|
||||
// {
|
||||
// while (i[0] < text.Length && IsNullOrWhiteSpace(text.Substring(i[0], 1)))
|
||||
// ++i[0];
|
||||
// int j = i[0];
|
||||
// while (j < text.Length && !IsNullOrWhiteSpace(text.Substring(j, 1)))
|
||||
// ++j;
|
||||
// string str = text.Substring(i[0], j - i[0]);
|
||||
// i[0] = j;
|
||||
// return str.Trim();
|
||||
// }
|
||||
|
||||
// private static string PeekNextLine(string text, int[] i)
|
||||
// {
|
||||
// int j = i[0];
|
||||
// string result = Header.GetToEOL(text, i);
|
||||
// i[0] = j;
|
||||
// return result;
|
||||
// }
|
||||
|
||||
internal static ReadOnlyCollection<Wafer> Get(string headerFileName, Dictionary<string, string> pages, Constant constant)
|
||||
{
|
||||
List<Wafer> results = new();
|
||||
@ -226,4 +188,11 @@ public class Wafer
|
||||
}
|
||||
return results.AsReadOnly();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
[JsonSerializable(typeof(Wafer))]
|
||||
internal partial class WaferSourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user