39 const std::map<std::string, std::string>
get_request(
const std::string& command,
40 const std::vector<std::string>& json_keys,
41 const std::initializer_list<param_type>& query);
42 const std::map<std::string, std::string>
43 get_request(
const std::string& command,
const std::vector<std::string>& json_keys = std::vector<std::string>(),
47 const std::vector<std::string>& json_keys = std::vector<std::string>(),
48 const std::initializer_list<param_type>& query = std::initializer_list<param_type>());
52 bool check_error(std::map<std::string, std::string>& mp,
const std::string& err_code,
const std::string& err_text,
53 const std::string& err_http);
56 std::shared_ptr<HandleInfo>
info_;
61 PFSDPBase(std::shared_ptr<HandleInfo> info, std::shared_ptr<ScanConfig> config,
62 std::shared_ptr<ScanParameters> params);
76 template <
typename... Ts>
82 template <
typename... Ts>
85 return get_request(
"get_parameter", { ts... }, {
KV(
"list", ts...) });
94 template <
typename... Ts>
100 void request_handle_tcp(
const std::string& port =
"",
const std::string& packet_type =
"");
void set_connection_failure_cb(std::function< void()> callback)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val)
bool is_connection_failure(const std::string &http_error)
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 >())
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)
virtual void request_handle_udp(const std::string &packet_type="")
std::unique_ptr< HTTPInterface > HTTPInterfacePtr
virtual std::string get_part()
virtual void setup_param_server()
std::string get_parameter_str(const std::string ¶m)
std::map< std::string, std::string > param_map_type
const std::vector< std::string > list_parameters()
std::map< std::string, std::string > get_parameter(const Ts &... ts)
bool stop_scanoutput(const std::string &handle)
virtual std::string get_product()
PFSDPBase(std::shared_ptr< HandleInfo > info, std::shared_ptr< ScanConfig > config, std::shared_ptr< ScanParameters > params)
bool feed_watchdog(const std::string &handle)
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)
std::int64_t get_parameter_int(const std::string ¶m)
bool set_parameter(const std::initializer_list< param_type > params)
bool reset_parameter(const Ts &... ts)
std::shared_ptr< HandleInfo > info_
HTTPInterfacePtr http_interface
bool update_scanoutput_config()
float get_parameter_float(const std::string ¶m)
std::function< void()> handle_connection_failure
virtual void get_scanoutput_config(const std::string &handle)
virtual void get_scan_parameters()
bool set_scanoutput_config(const std::string &handle, const ScanConfig &config)
ProtocolInfo get_protocol_info()
std::shared_ptr< ScanConfig > config_
std::shared_ptr< ScanParameters > params_
void request_handle_tcp(const std::string &port="", const std::string &packet_type="")
bool release_handle(const std::string &handle)