Ditto 3.0.11
Loading...
Searching...
No Matches
Public Attributes | List of all members
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.
 
- 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
 

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.