6 #ifndef KNOWROB_OBSERVER_MANAGER_H
7 #define KNOWROB_OBSERVER_MANAGER_H
10 #include <knowrob/semweb/GraphQuery.h>
11 #include <knowrob/storage/Transaction.h>
18 class ObserverManager :
public std::enable_shared_from_this<ObserverManager> {
73 std::unique_ptr<Impl>
impl_;
ObserverManager(const QueryableBackendPtr &backend)
void insert(const TripleContainerPtr &triples)
void query(const GraphQueryPtr &query, const BindingsHandler &callback)
std::unique_ptr< Impl > impl_
QueryableBackendPtr backend_
void query(const GraphQueryPtr &query, const BindingsHandler &callback)
void remove(const TripleContainerPtr &triples)
ObserverPtr observe(const GraphQueryPtr &query, const BindingsHandler &callback)
void stopObservation(const Observer &observer)
std::shared_ptr< TripleContainer > TripleContainerPtr
std::shared_ptr< Observer > ObserverPtr
std::shared_ptr< ObserverManager > ObserverManagerPtr
std::function< void(const BindingsPtr &)> BindingsHandler
std::shared_ptr< GraphQuery > GraphQueryPtr
std::shared_ptr< QueryableStorage > QueryableBackendPtr