trase
trase::CSVDownloader Class Reference

Public Types

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)
 

Public Member Functions

 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
 

Member Function Documentation

◆ 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
urlurl to download csv file from
labelsif 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: