1#ifndef _DITTO_STORE_OBSERVER_
2#define _DITTO_STORE_OBSERVER_
15#include "dittoffi.hpp"
19class DittoHandleWrapper;
26typedef std::function<void(QueryResult)> StoreObservationHandler;
28typedef std::function<void()> NextSignal;
35typedef std::function<void(QueryResult, NextSignal)>
36 StoreObservationHandlerWithNextSignal;
45 public std::enable_shared_from_this<StoreObserver> {
55 void on_stop()
override;
58 LiveQueryAvailability_t,
59 StoreObservationHandlerWithNextSignal event_callback);
61 class StoreObserverCtx;
62 StoreObserverCtx *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:25
Definition StoreObserver.hpp:45
basic_json<> json
default JSON class
Definition json.hpp:2933