Static Public Member Functions | List of all members
openfluid::utils::FileDownloader Class Reference

#include <utils/FileDownloader.hpp>

Static Public Member Functions

static bool downloadToString (const std::string &URL, std::string &Contents)
 
static bool downloadToFile (const std::string &URL, const std::string &FilePath)
 

Detailed Description

Management of data downloads over network

Member Function Documentation

static bool openfluid::utils::FileDownloader::downloadToFile ( const std::string &  URL,
const std::string &  FilePath 
)
static

Downloads URL contents to file

Parameters
[in]URLThe URL for the download
[out]FilePathThe path of the file to store the downloaded contents
static bool openfluid::utils::FileDownloader::downloadToString ( const std::string &  URL,
std::string &  Contents 
)
static

Downloads URL contents to string

Parameters
[in]URLThe URL for the download
[out]ContentsThe string containing the downloaded contents

The documentation for this class was generated from the following file: