Charting code import

This commit is contained in:
2015-11-20 11:46:43 -05:00
parent efcff634a5
commit 5aaed082c9
7 changed files with 1859 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
using System;
using System.IO;
namespace LeafWeb.Web.Charter
{
[Serializable]
public class CurveData
{
private readonly String curveID;
private readonly CurveParamSet paramSet1;
private readonly CurveParamSet paramSet2;
private readonly CurveParamSet paramSet3;
private readonly CurveParamSet paramSet4;
public CurveData()
{
}
public CurveData(StreamReader sr, ref String errMsg, ref int lineNbr)
{
// For each curve in the output file there are four sets of data.
paramSet1 = new CurveParamSet(sr, ref errMsg, ref lineNbr, ref curveID);
if (errMsg.Length > 0)
return;
paramSet2 = new CurveParamSet(sr, ref errMsg, ref lineNbr, ref curveID);
if (errMsg.Length > 0)
return;
paramSet3 = new CurveParamSet(sr, ref errMsg, ref lineNbr, ref curveID);
if (errMsg.Length > 0)
return;
paramSet4 = new CurveParamSet(sr, ref errMsg, ref lineNbr, ref curveID);
if (errMsg.Length > 0)
return;
return;
}
public String getCurveID()
{
return curveID;
}
public CurveParamSet getParamSet1()
{
return paramSet1;
}
public CurveParamSet getParamSet2()
{
return paramSet2;
}
public CurveParamSet getParamSet3()
{
return paramSet3;
}
public CurveParamSet getParamSet4()
{
return paramSet4;
}
}
}