mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-09-28 21:56:00 +00:00
a9a03d946a
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
29 lines
696 B
C#
29 lines
696 B
C#
namespace Fuse
|
|
{
|
|
using System.Collections.Generic;
|
|
|
|
public class Results
|
|
{
|
|
private readonly Lines lines;
|
|
|
|
public Dictionary<string, Result> Container { get; } = new Dictionary<string, Result>();
|
|
|
|
public Results(string path) => this.lines = new Lines(path);
|
|
|
|
public void Read() => this.lines.Read();
|
|
|
|
public void Parse()
|
|
{
|
|
while (!this.lines.EndOfFile)
|
|
{
|
|
var result = new Result();
|
|
result.Parse(this.lines);
|
|
if (result.Valid)
|
|
{
|
|
this.Container.Add(result.Description, result);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|