Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
rs2::sw_update::versions_db_manager Class Reference

#include <versions-db-manager.h>

Classes

struct  server_version_type
 

Public Member Functions

bool get_version_description (const component_part_type component, const version &version, std::string &version_description)
 
bool get_version_download_link (const component_part_type component, const version &version, std::string &dl_link)
 
bool get_version_release_notes (const component_part_type component, const version &version, std::string &version_release_notes_link)
 
query_status_type query_versions (const std::string &device_name, component_part_type component, const update_policy_type policy, version &out_version)
 
 versions_db_manager (const std::string &url, const bool use_url_as_local_path=false, http::user_callback_func_type download_callback=http::user_callback_func_type())
 
 ~versions_db_manager ()
 

Private Member Functions

void build_schema (std::unordered_map< std::string, std::function< bool(const std::string &)>> &verifier)
 
bool get_server_data (std::stringstream &ver_data)
 
bool get_version_data_common (const component_part_type component, const version &version, const std::string &req_field, std::string &out)
 
bool init ()
 
bool is_device_name_equal (const std::string &str_from_db, const std::string &str_compared, bool allow_wildcard)
 
void parse_versions_data (const std::stringstream &ver_data)
 

Private Attributes

const std::string _dev_info_url
 
http::user_callback_func_type _download_cb_func
 
bool _local_source_file
 
bool _server_versions_loaded
 
std::vector< std::unordered_map< std::string, std::string > > _server_versions_vec
 

Detailed Description

Definition at line 99 of file versions-db-manager.h.

Constructor & Destructor Documentation

rs2::sw_update::versions_db_manager::versions_db_manager ( const std::string url,
const bool  use_url_as_local_path = false,
http::user_callback_func_type  download_callback = http::user_callback_func_type() 
)
inlineexplicit

Definition at line 103 of file versions-db-manager.h.

rs2::sw_update::versions_db_manager::~versions_db_manager ( )
inline

Definition at line 106 of file versions-db-manager.h.

Member Function Documentation

void rs2::sw_update::versions_db_manager::build_schema ( std::unordered_map< std::string, std::function< bool(const std::string &)>> &  verifier)
private

Definition at line 301 of file versions-db-manager.cpp.

bool rs2::sw_update::versions_db_manager::get_server_data ( std::stringstream &  ver_data)
private

Definition at line 171 of file versions-db-manager.cpp.

bool rs2::sw_update::versions_db_manager::get_version_data_common ( const component_part_type  component,
const version version,
const std::string req_field,
std::string out 
)
private

Definition at line 75 of file versions-db-manager.cpp.

bool rs2::sw_update::versions_db_manager::get_version_description ( const component_part_type  component,
const version version,
std::string version_description 
)
inline

Definition at line 111 of file versions-db-manager.h.

bool rs2::sw_update::versions_db_manager::get_version_download_link ( const component_part_type  component,
const version version,
std::string dl_link 
)
inline

Definition at line 109 of file versions-db-manager.h.

bool rs2::sw_update::versions_db_manager::get_version_release_notes ( const component_part_type  component,
const version version,
std::string version_release_notes_link 
)
inline

Definition at line 110 of file versions-db-manager.h.

bool rs2::sw_update::versions_db_manager::init ( )
private

Definition at line 280 of file versions-db-manager.cpp.

bool rs2::sw_update::versions_db_manager::is_device_name_equal ( const std::string str_from_db,
const std::string str_compared,
bool  allow_wildcard 
)
private

Definition at line 315 of file versions-db-manager.cpp.

void rs2::sw_update::versions_db_manager::parse_versions_data ( const std::stringstream &  ver_data)
private

Definition at line 203 of file versions-db-manager.cpp.

query_status_type rs2::sw_update::versions_db_manager::query_versions ( const std::string device_name,
component_part_type  component,
const update_policy_type  policy,
version out_version 
)

Definition at line 41 of file versions-db-manager.cpp.

Member Data Documentation

const std::string rs2::sw_update::versions_db_manager::_dev_info_url
private

Definition at line 147 of file versions-db-manager.h.

http::user_callback_func_type rs2::sw_update::versions_db_manager::_download_cb_func
private

Definition at line 151 of file versions-db-manager.h.

bool rs2::sw_update::versions_db_manager::_local_source_file
private

Definition at line 148 of file versions-db-manager.h.

bool rs2::sw_update::versions_db_manager::_server_versions_loaded
private

Definition at line 149 of file versions-db-manager.h.

std::vector<std::unordered_map<std::string, std::string> > rs2::sw_update::versions_db_manager::_server_versions_vec
private

Definition at line 150 of file versions-db-manager.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