#include <pfsdp_base.h>
|
bool | check_error (std::map< std::string, std::string > &mp, const std::string &err_code, const std::string &err_text, const std::string &err_http) |
|
const std::map< std::string, std::string > | get_request (const std::string &command, const std::vector< std::string > &json_keys, const std::initializer_list< param_type > &query) |
|
const std::map< std::string, std::string > | get_request (const std::string &command, const std::vector< std::string > &json_keys=std::vector< std::string >(), const param_map_type &query=param_map_type()) |
|
bool | get_request_bool (const std::string &command, const std::vector< std::string > &json_keys=std::vector< std::string >(), const std::initializer_list< param_type > &query=std::initializer_list< param_type >()) |
|
bool | is_connection_failure (const std::string &http_error) |
|
Definition at line 32 of file pfsdp_base.h.
◆ HTTPInterfacePtr
◆ PFSDPBase()
◆ check_error()
bool PFSDPBase::check_error |
( |
std::map< std::string, std::string > & |
mp, |
|
|
const std::string & |
err_code, |
|
|
const std::string & |
err_text, |
|
|
const std::string & |
err_http |
|
) |
| |
|
private |
◆ factory_reset()
void PFSDPBase::factory_reset |
( |
| ) |
|
◆ feed_watchdog()
bool PFSDPBase::feed_watchdog |
( |
const std::string & |
handle | ) |
|
◆ get_parameter()
template<typename... Ts>
std::map<std::string, std::string> PFSDPBase::get_parameter |
( |
const Ts &... |
ts | ) |
|
|
inline |
◆ get_parameter_float()
float PFSDPBase::get_parameter_float |
( |
const std::string & |
param | ) |
|
◆ get_parameter_int()
int64_t PFSDPBase::get_parameter_int |
( |
const std::string & |
param | ) |
|
◆ get_parameter_str()
std::string PFSDPBase::get_parameter_str |
( |
const std::string & |
param | ) |
|
◆ get_part()
std::string PFSDPBase::get_part |
( |
| ) |
|
|
virtual |
◆ get_product()
std::string PFSDPBase::get_product |
( |
| ) |
|
|
virtual |
◆ get_protocol_info()
◆ get_request() [1/2]
const std::map< std::string, std::string > PFSDPBase::get_request |
( |
const std::string & |
command, |
|
|
const std::vector< std::string > & |
json_keys, |
|
|
const std::initializer_list< param_type > & |
query |
|
) |
| |
|
private |
◆ get_request() [2/2]
const std::map< std::string, std::string > PFSDPBase::get_request |
( |
const std::string & |
command, |
|
|
const std::vector< std::string > & |
json_keys = std::vector<std::string>() , |
|
|
const param_map_type & |
query = param_map_type() |
|
) |
| |
|
private |
◆ get_request_bool()
bool PFSDPBase::get_request_bool |
( |
const std::string & |
command, |
|
|
const std::vector< std::string > & |
json_keys = std::vector<std::string>() , |
|
|
const std::initializer_list< param_type > & |
query = std::initializer_list<param_type>() |
|
) |
| |
|
private |
◆ get_scan_parameters()
void PFSDPBase::get_scan_parameters |
( |
| ) |
|
|
virtual |
◆ get_scanoutput_config() [1/2]
void PFSDPBase::get_scanoutput_config |
( |
const std::string & |
handle | ) |
|
|
virtual |
◆ get_scanoutput_config() [2/2]
std::string PFSDPBase::get_scanoutput_config |
( |
const std::string & |
param, |
|
|
const std::string & |
handle |
|
) |
| |
◆ is_connection_failure()
bool PFSDPBase::is_connection_failure |
( |
const std::string & |
http_error | ) |
|
|
private |
◆ list_parameters()
const std::vector< std::string > PFSDPBase::list_parameters |
( |
| ) |
|
◆ reboot_device()
bool PFSDPBase::reboot_device |
( |
| ) |
|
◆ release_handle()
bool PFSDPBase::release_handle |
( |
const std::string & |
handle | ) |
|
◆ request_handle_tcp()
void PFSDPBase::request_handle_tcp |
( |
const std::string & |
port = "" , |
|
|
const std::string & |
packet_type = "" |
|
) |
| |
◆ request_handle_udp()
void PFSDPBase::request_handle_udp |
( |
const std::string & |
packet_type = "" | ) |
|
|
virtual |
◆ reset_parameter()
template<typename... Ts>
bool PFSDPBase::reset_parameter |
( |
const Ts &... |
ts | ) |
|
|
inline |
◆ set_connection_failure_cb()
void PFSDPBase::set_connection_failure_cb |
( |
std::function< void()> |
callback | ) |
|
◆ set_parameter()
template<typename... Ts>
bool PFSDPBase::set_parameter |
( |
const std::initializer_list< param_type > |
params | ) |
|
|
inline |
◆ set_scanoutput_config()
bool PFSDPBase::set_scanoutput_config |
( |
const std::string & |
handle, |
|
|
const ScanConfig & |
config |
|
) |
| |
◆ setup_param_server()
void PFSDPBase::setup_param_server |
( |
| ) |
|
|
virtual |
◆ start_scanoutput()
bool PFSDPBase::start_scanoutput |
( |
| ) |
|
◆ stop_scanoutput()
bool PFSDPBase::stop_scanoutput |
( |
const std::string & |
handle | ) |
|
◆ update_scanoutput_config()
bool PFSDPBase::update_scanoutput_config |
( |
| ) |
|
◆ config_
◆ handle_connection_failure
std::function<void()> PFSDPBase::handle_connection_failure |
|
private |
◆ http_interface
◆ info_
◆ params_
The documentation for this class was generated from the following files: