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.
26 lines
475 B
C
26 lines
475 B
C
|
1 month ago
|
#pragma once
|
||
|
|
#ifndef CSVFileReader_h__
|
||
|
|
#define CSVFileReader_h__
|
||
|
|
|
||
|
|
namespace NChart
|
||
|
|
{
|
||
|
|
|
||
|
|
class AFX_EXT_CLASS CCSVFileReader
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
CCSVFileReader(CString strFilePath = _T(""));
|
||
|
|
~CCSVFileReader(void);
|
||
|
|
vector<CString> m_vecFileds;
|
||
|
|
vector<vector<CString>> m_vecContents;
|
||
|
|
int ReadData(CString strFilePath);
|
||
|
|
CString GetFilePath();
|
||
|
|
int GetColsCount();
|
||
|
|
int GetRowsCount();
|
||
|
|
private:
|
||
|
|
void Clear();
|
||
|
|
CString m_strFilePath;
|
||
|
|
};
|
||
|
|
|
||
|
|
}//namespace
|
||
|
|
|
||
|
|
#endif // CSVFileReader_h__
|