Ditto 4.13.1
 
Loading...
Searching...
No Matches
order_by.hpp
1#ifndef DITTO_ORDER_BY_H
2#define DITTO_ORDER_BY_H
3
4#include "SortDirection.hpp"
5
6#include "dittoffi.hpp"
7
8#include <string>
9#include <vector>
10
11namespace ditto {
17class DITTO_DEPRECATED_BECAUSE(
18 "Use DQL (Ditto Query Language) instead. For more information see: "
19 "https://ditto.com/link/legacy-to-dql-guide") OrderBy {
20 DITTO_DISABLE_DEPRECATED_WARNINGS("The legacy query API is deprecated")
21
22 friend class LiveQuery;
23 friend class PendingCursorOperation;
24 friend class Subscription;
25
26public:
27 ~OrderBy();
28 OrderBy() = default;
29 OrderBy(const OrderBy &other);
30 void add_sort(std::string query_str, SortDirection direction);
31 std::vector<COrderByParam_t> &get_vec();
32
33private:
34 std::vector<COrderByParam_t> order_by_definitions;
35
36 DITTO_REENABLE_WARNINGS
37};
38} // namespace ditto
39
40#endif
Namespace for the Ditto C++ SDK types and functions.
Definition AbstractDocumentPath.hpp:19
SortDirection
Definition SortDirection.hpp:16