Class Query

Class Documentation

class Query

A Query represent a query.

It describe what have to be searched and how. A Query is “database” independent.

Public Functions

Query(const std::string &query = "")

Query constructor.

Create a empty query.

Query &setQuery(const std::string &query)

Set the textual query of the Query.

Parameters:

query – The string to search for.

Query &setGeorange(float latitude, float longitude, float distance)

Set the geographical query of the Query.

Some article may be geo positioned. You can search for articles in a certain distance of a point.

Parameters:
  • latitude – The latitute of the point.

  • longitude – The longitude of the point.

  • distance – The maximal distance from the point.

Public Members

std::string m_query = {""}
bool m_geoquery = {false}
float m_latitude = {0}
float m_longitude = {0}
float m_distance = {0}