Feel++ 0.111.0-preview.14
Finite Element Embedded Library in C++
Feel::RemoteData::URL Class Reference
+ Collaboration diagram for Feel::RemoteData::URL:

Public Member Functions

std::string download (std::string const &dir=Environment::downloadsRepository(), std::string const &filename="") const
 Download a file from the URL. More...
 
bool isValid () const
 Return true if the URL is valid.
 
 URL (std::string const &url, WorldComm &worldComm=Environment::worldComm())
 
 URL (URL &&)=default
 
 URL (URL const &)=default
 

Member Function Documentation

◆ download()

std::string Feel::RemoteData::URL::download ( std::string const &  dir = Environment::downloadsRepository(),
std::string const &  filename = "" 
) const

Download a file from the URL.

Parameters
dir: the directory where the file is downloaded
filename: the filename of the downloaded file
Returns
: the path of the downloaded file