ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Download.cpp File Reference
#include "cloudViewer/utility/Download.h"
#include <openssl/md5.h>
#include <curl/curl.h>
#include <curl/easy.h>
#include <FileSystem.h>
#include <Logging.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <unordered_set>
#include "cloudViewer/data/Dataset.h"
Include dependency graph for Download.cpp:

Go to the source code of this file.

Namespaces

 cloudViewer
 Generic file read and write utility for python interface.
 
 cloudViewer::utility
 

Macros

#define OPENSSL_API_COMPAT   10100
 
#define CURL_STATICLIB
 

Functions

std::string cloudViewer::utility::GetMD5 (const std::string &file_path)
 Computes MD5 Hash for the given file. More...
 
static size_t cloudViewer::utility::WriteDataCb (void *ptr, size_t size, size_t nmemb, FILE *stream)
 
std::string cloudViewer::utility::DownloadFromURL (const std::string &url, const std::string &md5, const std::string &download_dir)
 Download a file from URL. If a file already exists and the MD5 hash matches, the download will be skipped. More...
 
std::string cloudViewer::utility::DownloadFromMirrors (const std::vector< std::string > &mirrors, const std::string &md5, const std::string &download_dir)
 Download a file from list of mirror URLs. If a file already exists and the MD5 hash matches, the download will be skipped. All file names must be the same in mirrors. More...
 

Macro Definition Documentation

◆ CURL_STATICLIB

#define CURL_STATICLIB

Definition at line 25 of file Download.cpp.

◆ OPENSSL_API_COMPAT

#define OPENSSL_API_COMPAT   10100

Definition at line 11 of file Download.cpp.