You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
803 B
C++
39 lines
803 B
C++
#pragma once
|
|
#ifndef ChartDataSet_h__
|
|
#define ChartDataSet_h__
|
|
|
|
#include "CSVFileReader.h"
|
|
#include "CommonDefine.h"
|
|
|
|
namespace NChart
|
|
{
|
|
|
|
/* @brief ͳ¼ÆÍ¼Êý¾Ý¹ÜÀíÆ÷ */
|
|
class AFX_EXT_CLASS CChartDataSet
|
|
{
|
|
public:
|
|
CChartDataSet(void);
|
|
~CChartDataSet(void);
|
|
void GetDataFormCSV(CString dataFilePath);
|
|
double GetMax();
|
|
double GetMin();
|
|
double GetColSum(int col);
|
|
|
|
virtual void Serialize(CArchive& ar, const short &ver);
|
|
virtual int Read(CFile& fr, const short& ver);
|
|
virtual void Write(CFile& fw, const short& ver);
|
|
void CopyData(CChartDataSet * pData);
|
|
VALBOUNDARY GetAutoBoundary();
|
|
|
|
CString m_dataFilePath;
|
|
CCSVFileReader m_csvReader;
|
|
vector<CString> m_vecFields;
|
|
vector<CString> m_vecRowName;
|
|
vector<vector<double>> m_valArray;
|
|
|
|
};
|
|
|
|
}
|
|
using namespace NChart;
|
|
|
|
#endif // ChartDataSet_h__
|