Ditto 4.8.0
Loading...
Searching...
No Matches
ditto::Subscription Class Reference

While Subscription objects remain in scope they ensure that documents in the collection specified, and that match the query provided, will try to be kept up-to-date with the latest changes from remote peers. More...

#include <Subscription.hpp>

Inheritance diagram for ditto::Subscription:
ditto::Observer

Public Attributes

std::string query
 
std::string collection_name
 

Additional Inherited Members

- Public Member Functions inherited from ditto::Observer
void stop ()
 Stops the observation and cleans up all associated resources.
 
bool is_stopped ()
 Returns true is the Observer was stopped.
 
- Protected Member Functions inherited from ditto::Observer
 Observer ()
 Constructs a new Observer.
 
 ~Observer ()
 Destroy the Abstract Observer object canceling the observer if it hasn't been done in stop
 
- Protected Attributes inherited from ditto::Observer
bool stopped
 Track if the Observer has already been stopped so we don't stop it twice when destroying the object.
 

Detailed Description

While Subscription objects remain in scope they ensure that documents in the collection specified, and that match the query provided, will try to be kept up-to-date with the latest changes from remote peers.

Member Data Documentation

◆ collection_name

std::string ditto::Subscription::collection_name

The name of the collection that the subscription is relevant to.

◆ query

std::string ditto::Subscription::query

The query being used for this Subscription.