using System.IO; namespace LeafWeb.Core.CharterOld { public class CurveData { private readonly string _curveId; public string CurveId => _curveId; // 1 public CurveParamSet FixedCndFixedCmp { get; } // 2 public CurveParamSet FixedCndEstimatedCmp { get; } // 3 public CurveParamSet EstimatedCndFixedCmp { get; } // 4 public CurveParamSet EstimatedCndEstimatedCmp { get; } public CurveData(TextReader sr, ref int lineNbr) { // For each curve in the output file there are four sets of data. FixedCndFixedCmp = new CurveParamSet(sr, ref lineNbr, ref _curveId); FixedCndEstimatedCmp = new CurveParamSet(sr, ref lineNbr, ref _curveId); EstimatedCndFixedCmp = new CurveParamSet(sr, ref lineNbr, ref _curveId); EstimatedCndEstimatedCmp = new CurveParamSet(sr, ref lineNbr, ref _curveId); } } }