9 #ifndef _1cd2d27d_2d97_405b_b9d5_4104210e543a
10 #define _1cd2d27d_2d97_405b_b9d5_4104210e543a
36 QIDORSRequest(URL
const & base_url);
39 QIDORSRequest(HTTPRequest
const & request);
42 bool operator==(QIDORSRequest
const & other)
const;
45 bool operator!=(QIDORSRequest
const & other)
const;
48 URL
const & get_base_url()
const;
51 void set_base_url(URL
const & url);
54 std::string
const & get_media_type()
const;
60 URL
const & get_url ()
const;
63 Selector
const & get_selector()
const;
66 std::shared_ptr<DataSet const> get_query_data_set()
const;
69 std::set<std::vector<Tag>>
const & get_includefields()
const;
72 bool get_fuzzymatching()
const;
75 int get_limit()
const;
78 int get_offset()
const;
81 HTTPRequest get_http_request()
const;
84 void request_datasets(
86 std::shared_ptr<DataSet> query,
bool fuzzymatching=
false,
87 int limit=-1,
int offset=0,
bool numerical_tags=
false);
91 std::string _media_type;
95 std::shared_ptr<DataSet> _query_data_set;
107 static bool _is_selector_valid (Selector
const & selector);
110 static std::string _tag_to_string(Tag
const & tag,
bool numerical_tag);
113 void _from_url(URL
const & url);
116 URL _generate_url(
bool numerical_tags=
false);
125 #endif // _1cd2d27d_2d97_405b_b9d5_4104210e543a