1#ifndef _DITTO_STORE_OBSERVER_
2#define _DITTO_STORE_OBSERVER_
15#include "dittoffi.hpp"
25typedef std::function<void(QueryResult)> StoreObservationHandler;
27typedef std::function<void()> NextSignal;
34typedef std::function<void(QueryResult, NextSignal)>
35 StoreObservationHandlerWithNextSignal;
44 public std::enable_shared_from_this<StoreObserver> {
68 void on_stop()
override;
72 StoreObservationHandlerWithNextSignal event_callback);
75 std::unique_ptr<ArcCtx> ctx;
An observation token returned by any observation API in the Ditto SDK. Retain this object to continue...
Definition Observer.hpp:11
Provides access to Collections and a write transaction API.
Definition Store.hpp:29
Definition StoreObserver.hpp:44
void cancel()
Cancels the observation. The handler that was passed in when registering this store observer will no ...
Definition StoreObserver.cpp:149
bool is_cancelled()
Convenience property, returns true if the store observer has been cancelled, otherwise returns false....
Definition StoreObserver.cpp:151
basic_json<> json
default JSON class
Definition json.hpp:2933