2024-11-18 14:31:39 -07:00

36 lines
1015 B
C#

namespace Adaptation.FileHandlers.QS408M;
#nullable enable
public class Footer
{
public Footer(string line, string radialVariationThickness, string slot)
{
Line = line;
RadialVariationThickness = radialVariationThickness;
Slot = slot;
}
public string Line { get; }
public string RadialVariationThickness { get; }
public string Slot { get; }
internal static Footer? Get(string text, int[] i)
{
Footer? result;
_ = Complete.GetToEOL(text, i);
_ = Complete.GetToEOL(text, i);
string line = Complete.GetToEOL(text, i);
i[0] = Complete.ScanPast(text, i, "thickness");
string radialVariationThickness = Complete.GetToEOL(text, i);
_ = Complete.GetToEOL(text, i);
i[0] = Complete.ScanPast(text, i, "Slot:");
string slot = Complete.GetBefore(text, i, ";");
result = new(line,
radialVariationThickness,
slot);
return result;
}
}