Ditto 4.7.1
|
#include <StoreObserver.hpp>
Public Member Functions | |
StoreObserver (StoreObserver &&) | |
StoreObserver & | operator= (StoreObserver &&) |
void | cancel () |
Cancels the observation. The handler that was passed in when registering this store observer will no longer be called. No-op if this store observer is already cancelled or the owning Ditto object goes out of scope. | |
bool | is_cancelled () |
Convenience property, returns true if the store observer has been cancelled, otherwise returns false . Also, a store observer is considered cancelled if the owning Ditto object goes out of scope. | |
A store observer invokes a change handler whenever results for its query change.
Create a store observer by calling Store::register_observer()
.