public Settings(System.IO.TextReader conf)
{
QuickFix.Dictionary currentSection = null;
string line = null;
while ((line = conf.ReadLine()) != null)
{
line = line.Trim();
if (IsComment(line))
{
continue;
}
else if (IsSection(line))
{
currentSection = Add(new Dictionary(SplitSection(line)));
}
else if (IsKeyValue(line))
{
string[] kv = line.Split('=');
if (currentSection != null)
currentSection.SetString(kv[0].Trim(), kv[1].Trim());
}
}
}