#include <utils/FileDownloader.hpp>
|
static bool | downloadToString (const std::string &URL, std::string &Contents) |
|
static bool | downloadToFile (const std::string &URL, const std::string &FilePath) |
|
Management of data downloads over network
◆ downloadToFile()
static bool openfluid::utils::FileDownloader::downloadToFile |
( |
const std::string & |
URL, |
|
|
const std::string & |
FilePath |
|
) |
| |
|
static |
Downloads URL contents to file
- Parameters
-
[in] | URL | The URL for the download |
[out] | FilePath | The path of the file to store the downloaded contents |
◆ downloadToString()
static bool openfluid::utils::FileDownloader::downloadToString |
( |
const std::string & |
URL, |
|
|
std::string & |
Contents |
|
) |
| |
|
static |
Downloads URL contents to string
- Parameters
-
[in] | URL | The URL for the download |
[out] | Contents | The string containing the downloaded contents |
The documentation for this class was generated from the following file: