2 #include <boost/property_tree/json_parser.hpp>
3 #include <boost/property_tree/ptree.hpp>
4 #include <ff/util/ntobject.h>
5 #include <hpda/common/common.h>
6 #include <hpda/common/stream_policy.h>
7 #include <hpda/extractor/extractor_base.h>
14 typedef std::function<std::string(
const std::string &prefix,
int next_index,
17 typedef std::function<int(
const boost::property_tree::ptree &tree)>
19 typedef std::function<int(
const boost::property_tree::ptree &tree)>
23 int page_limit,
const next_page_request_t &func,
24 const start_index_picker_t &start_index_picker,
25 const end_index_picker_t &end_index_picker);
28 virtual bool process();
30 virtual std::string output_value();
33 std::string request(
const std::string &url);
36 const std::string m_domain;
37 const std::string m_path;
41 std::string m_response;
42 next_page_request_t m_next_page_request;
43 start_index_picker_t m_start_index_picker;
44 end_index_picker_t m_end_index_picker;