Ditto 2.0.6
Subscription.hpp
1#ifndef _DITTO_SUBSCRIPTION_
2#define _DITTO_SUBSCRIPTION_
3
4#include "json.hpp"
5
6#include <memory>
7#include <string>
8
9namespace ditto {
10class DittoHandleWrapper;
11class OrderBy;
12
19 friend class PendingIDSpecificOperation;
20 friend class PendingCursorOperation;
21
22 std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper;
23 nlohmann::json query_args;
24 std::shared_ptr<OrderBy> order_by;
25 int32_t limit = -1;
26 uint32_t offset = 0;
27
28 Subscription(std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper,
29 std::string query, nlohmann::json query_args,
30 std::shared_ptr<OrderBy> order_by, int32_t limit,
31 uint32_t offset, std::string collection_name);
32
33public:
37 std::string query;
38
42 std::string collection_name;
43
45};
46} // namespace ditto
47#endif
These objects are returned when using find-like functionality on Collection objects.
Definition: PendingCursorOperation.hpp:49
These objects are returned when using Collection::find_by_id functionality.
Definition: PendingIDSpecificOperation.hpp:44
While Subscription objects remain in scope they ensure that documents in the collection specified,...
Definition: Subscription.hpp:18
std::string query
Definition: Subscription.hpp:37
std::string collection_name
Definition: Subscription.hpp:42
basic_json<> json
default JSON class
Definition: json.hpp:2933