Ditto 3.0.3
order_by.hpp
1#ifndef _DITTO_ORDER_BY_
2#define _DITTO_ORDER_BY_
3
4#include "SortDirection.hpp"
5
6#include "dittoffi.hpp"
7
8#include <string>
9#include <vector>
10
11namespace ditto {
12class OrderBy {
13 friend class LiveQuery;
14 friend class PendingCursorOperation;
15 friend class Subscription;
16
17public:
18 ~OrderBy();
19 OrderBy() = default;
20 OrderBy(const OrderBy &other);
21 void add_sort(std::string query_str, SortDirection direction);
22 std::vector<COrderByParam_t> &get_vec();
23
24private:
25 std::vector<COrderByParam_t> order_by_definitions;
26};
27} // namespace ditto
28
29#endif
The type that is returned when calling observe_local. It handles the logic for calling the event hand...
Definition: LiveQuery.hpp:108
Definition: order_by.hpp:12
These objects are returned when using find-like functionality on Collection objects.
Definition: PendingCursorOperation.hpp:44
While Subscription objects remain in scope they ensure that documents in the collection specified,...
Definition: Subscription.hpp:19