You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#pragma once
#include <fstream>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <string>
#include <vector>
namespace iflytop { using namespace std;
class ZCSVCell { public: int rowNum; int colNum; string data; };
class ZCSV { private: list<ZCSVCell> csvData;
int m_maxRowNum = 0; int m_maxColNum = 0;
public: ZCSV();
bool parseCSV(string filename);
void setdata(int rowNum, int colNum, string data); string getdata(int rowNum, int colNum);
int maxRowNum() { return m_maxRowNum; } int maxColNum() { return m_maxColNum; }
void dumpCSV(string filename);
private: ZCSVCell* findCell(int rowNum, int colNum); };
} // namespace iflytop
|