knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <ChangeStream.h>
Public Member Functions | |
ChangeStream (const std::shared_ptr< Collection > &collection, const bson_t *query, ChangeStreamCallback callback) | |
ChangeStream (const ChangeStream &)=delete | |
~ChangeStream () | |
bool | next () |
ChangeStream (const std::shared_ptr< Collection > &collection, const bson_t *query, ChangeStreamCallback callback) | |
ChangeStream (const ChangeStream &)=delete | |
~ChangeStream () | |
bool | next () |
Protected Attributes | |
std::shared_ptr< Collection > | collection_ |
ChangeStreamCallback | callback_ |
mongoc_change_stream_t * | stream_ |
bson_wrapper_ptr | next_ptr_ |
A stream of query results that invokes a callback whenever a new result is found.
Definition at line 27 of file ChangeStream.h.
ChangeStream::ChangeStream | ( | const std::shared_ptr< Collection > & | collection, |
const bson_t * | query, | ||
ChangeStreamCallback | callback | ||
) |
Definition at line 11 of file ChangeStream.cpp.
|
delete |
ChangeStream::~ChangeStream | ( | ) |
Definition at line 30 of file ChangeStream.cpp.
knowrob::mongo::ChangeStream::ChangeStream | ( | const std::shared_ptr< Collection > & | collection, |
const bson_t * | query, | ||
ChangeStreamCallback | callback | ||
) |
|
delete |
knowrob::mongo::ChangeStream::~ChangeStream | ( | ) |
bool ChangeStream::next | ( | ) |
Definition at line 37 of file ChangeStream.cpp.
bool knowrob::mongo::ChangeStream::next | ( | ) |
|
protected |
Definition at line 42 of file ChangeStream.h.
|
protected |
Definition at line 41 of file ChangeStream.h.
|
protected |
Definition at line 44 of file ChangeStream.h.
|
protected |
Definition at line 43 of file ChangeStream.h.