|
|
using | data_t = std::map< std::string, std::vector< std::string > > |
| | columns of csv file returned as a map from string label to a column of data (vector of strings)
|
| |
|
|
| CSVDownloader () |
| | constructs a csv downloader with default delimiter of ','
|
| |
| data_t | download (const std::string &url, const std::vector< std::string > &labels={}) |
| | download a csv file at the url given by url More...
|
| |
|
void | set_delim (const char arg) |
| | set the delimiter for the csv file format
|
| |
◆ download()
| CSVDownloader::data_t trase::CSVDownloader::download |
( |
const std::string & |
url, |
|
|
const std::vector< std::string > & |
labels = {} |
|
) |
| |
download a csv file at the url given by url
- Parameters
-
| url | url to download csv file from |
| labels | if empty, the first line of the csv file is assumed to contain the column labels If not empty, this vector contains the column labels |
The documentation for this class was generated from the following files: