Charting code import
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user