36 #ifndef _CSVDownloader_H_ 37 #define _CSVDownloader_H_ 49 using data_t = std::map<std::string, std::vector<std::string>>;
63 const std::vector<std::string> &labels = {});
71 const std::vector<std::string> &labels);
82 #endif // _CSVDownloader_H_ std::map< std::string, std::vector< std::string > > data_t
columns of csv file returned as a map from string label to a column of data (vector of strings) ...
Definition: CSVDownloader.hpp:49
data_t download(const std::string &url, const std::vector< std::string > &labels={})
download a csv file at the url given by url
Definition: CSVDownloader.cpp:112
void set_delim(const char arg)
set the delimiter for the csv file format
Definition: CSVDownloader.hpp:66
Definition: CSVDownloader.hpp:45
Definition: Backend.cpp:39
CSVDownloader()
constructs a csv downloader with default delimiter of ','
Definition: CSVDownloader.cpp:63