Add Transmission Control Protocol file handling and update PCL serialization
- Introduced FileRead and Record classes for handling file reading in the Transmission Control Protocol. - Enhanced Description, Detail, and other related classes with JSON serialization attributes for improved data handling. - Implemented methods for reading and processing files, including network stream management. - Updated unit tests to cover new functionality and ensure robust testing. - Added new PDSF file handling classes and integrated them into the project structure. - Refactored existing code to utilize source generation for JSON serialization, improving performance and maintainability.
This commit is contained in:
43
Adaptation/FileHandlers/pdsf/WaferSummary.cs
Normal file
43
Adaptation/FileHandlers/pdsf/WaferSummary.cs
Normal file
@ -0,0 +1,43 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Adaptation.FileHandlers.pdsf;
|
||||
|
||||
#nullable enable
|
||||
|
||||
public class WaferSummary
|
||||
{
|
||||
|
||||
public WaferSummary(string id, string lPDCount, string lPDCM2, string areaCount, string areaTotal, string scratchCount, string scratchTotal, string sumOfDefects, string hazeRegion, string hazeAverage, string grade)
|
||||
{
|
||||
Id = id;
|
||||
LPDCount = lPDCount;
|
||||
LPDCM2 = lPDCM2;
|
||||
AreaCount = areaCount;
|
||||
AreaTotal = areaTotal;
|
||||
ScratchCount = scratchCount;
|
||||
ScratchTotal = scratchTotal;
|
||||
SumOfDefects = sumOfDefects;
|
||||
HazeRegion = hazeRegion;
|
||||
HazeAverage = hazeAverage;
|
||||
Grade = grade;
|
||||
}
|
||||
|
||||
public string Id { get; }
|
||||
public string LPDCount { get; }
|
||||
public string LPDCM2 { get; }
|
||||
public string AreaCount { get; }
|
||||
public string AreaTotal { get; }
|
||||
public string ScratchCount { get; }
|
||||
public string ScratchTotal { get; }
|
||||
public string SumOfDefects { get; }
|
||||
public string HazeRegion { get; }
|
||||
public string HazeAverage { get; }
|
||||
public string Grade { get; }
|
||||
|
||||
}
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
[JsonSerializable(typeof(WaferSummary))]
|
||||
internal partial class WaferSummarySourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user