Go to the documentation of this file.
26 #ifndef O2SCL_CLOUD_FILE_H
27 #define O2SCL_CLOUD_FILE_H
35 #ifdef O2SCL_USE_BOOST_FILESYSTEM
36 #include <boost/filesystem.hpp>
39 #include <o2scl/err_hnd.h>
40 #include <o2scl/hdf_file.h>
42 #ifndef DOXYGEN_NO_O2NS
83 static const int sha256=0;
84 static const int md5=1;
85 static const int md5sum=2;
94 std::string url, std::string dir=
"");
101 std::string hash, std::string dir=
"");
106 int get_file(std::string file, std::string url,
124 int get_file_hash(std::string file, std::string url, std::string hash=
"",
129 #ifndef DOXYGEN_NO_O2NS
int hash_type
Current hash type (default sha256)
int get_file(std::string file, std::string url, std::string dir="")
Get file named file in directory dir from url url.
int hdf5_open(hdf_file &hf, std::string file, std::string url, std::string dir="")
Open an HDF file named file in directory dir downloading from URL url if necessary.
int hdf5_open_hash(hdf_file &hf, std::string file, std::string url, std::string hash, std::string dir="")
Open an HDF file named file in directory dir with hash hash, downloading from URL url if necessary.
The O<span style='position: relative; top: 0.3em; font-size: 0.8em'>2</span>scl O$_2$scl namespace ...
int get_file_hash(std::string file, std::string url, std::string hash="", std::string dir="")
Get file named file in directory dir in subdirectory subdir from url url.
bool throw_on_fail
If true, throw an exception on failure (default true)
bool allow_curl
If true, allow the use of curl to download the file (default true)
Read a file and download from a URL if necessary.
Store data in an O<span style='position: relative; top: 0.3em; font-size: 0.8em'>2</span>scl O$_2$sc...
int verbose
Verbosity parameter (default 1)
bool allow_wget
If true, allow the use of wget to download the file (default true)
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).