41 #ifndef SHARK_DATA_DOWNLOAD_H 42 #define SHARK_DATA_DOWNLOAD_H 91 std::string
const& url,
92 unsigned short port = 80,
93 unsigned int highestIndex = 0,
97 std::string content =
download(url, port);
98 std::stringstream ss(content);
110 std::string
const& name,
114 std::string filename;
117 if (c ==
' ') c =
'-';
118 else if (c >=
'A' && c <=
'Z') c += 32;
119 else if (c ==
'[' || c ==
'(' || c ==
')' || c ==
'.' || c ==
']')
continue;
137 std::string
const& url,
139 char separator =
',',
141 unsigned short port = 80,
145 std::string content =
download(url, port);
146 csvStringToData(dataset, content, lp, separator, comment, maximumBatchSize);
162 std::string
const& url,
164 std::size_t numberOfOutputs = 1,
165 char separator =
',',
167 unsigned short port = 80,
171 std::string content =
download(url, port);
172 csvStringToData(dataset, content, lp, numberOfOutputs, separator, comment, maximumBatchSize);