A simple C++ CSV reader. Inspired by Python Pandas.
QCsv::ReadCsvFile("example.csv"); // read csv file
QCsv::PrintDf(); // print the DataFrame
QCsv::WriteCsv("example.csv"); // write the changes of DataFrame
QCsv::convertAVectorToStringVector(vector); // a misc utility fucntion to transform vectors.
// std::vector<std::string> headers;
QCsv::headers[]; // a vector with the DataFrame headers
// std::map<std::string, std::vector<std::string>> df;
QCsv::df["header"]; // A map that have the DataFrame structure, like python pandas.
// The example above returns the series that is a string vector.
I strongly recommend see the example directory for more info and read the QCsv.hpp code. It won't take much time.
See the example directory for more information.