Public Member Functions | Private Member Functions | Private Attributes | List of all members
rs2::http::http_downloader Class Reference

#include <http-downloader.h>

Public Member Functions

bool download_to_bytes_vector (const std::string &url, std::vector< uint8_t > &output, user_callback_func_type user_callback_func=user_callback_func_type())
 
bool download_to_file (const std::string &url, const std::string &file_name, user_callback_func_type user_callback_func=user_callback_func_type())
 
bool download_to_stream (const std::string &url, std::stringstream &output, user_callback_func_type user_callback_func=user_callback_func_type())
 
 http_downloader ()
 
 ~http_downloader ()
 

Private Member Functions

void register_progress_call_back (progress_data &progress_record, user_callback_func_type user_callback_func)
 
void set_common_options (const std::string &url)
 

Private Attributes

void_curl
 

Detailed Description

Definition at line 22 of file http-downloader.h.

Constructor & Destructor Documentation

rs2::http::http_downloader::http_downloader ( )

Definition at line 27 of file http-downloader.cpp.

rs2::http::http_downloader::~http_downloader ( )

Definition at line 28 of file http-downloader.cpp.

Member Function Documentation

bool rs2::http::http_downloader::download_to_bytes_vector ( const std::string url,
std::vector< uint8_t > &  output,
user_callback_func_type  user_callback_func = user_callback_func_type() 
)

Definition at line 31 of file http-downloader.cpp.

bool rs2::http::http_downloader::download_to_file ( const std::string url,
const std::string file_name,
user_callback_func_type  user_callback_func = user_callback_func_type() 
)

Definition at line 30 of file http-downloader.cpp.

bool rs2::http::http_downloader::download_to_stream ( const std::string url,
std::stringstream &  output,
user_callback_func_type  user_callback_func = user_callback_func_type() 
)

Definition at line 29 of file http-downloader.cpp.

void rs2::http::http_downloader::register_progress_call_back ( progress_data &  progress_record,
user_callback_func_type  user_callback_func 
)
private
void rs2::http::http_downloader::set_common_options ( const std::string url)
private

Member Data Documentation

void* rs2::http::http_downloader::_curl
private

Definition at line 39 of file http-downloader.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:41