22#ifndef FAWKES_SRC_PLUGINS_ROBOT_MEMORY_EVENT_TRIGGER_H_
23#define FAWKES_SRC_PLUGINS_ROBOT_MEMORY_EVENT_TRIGGER_H_
25#include <boost/function.hpp>
26#include <mongocxx/client.hpp>
29typedef std::unique_ptr<mongocxx::cursor> QResCursor;
38 const bsoncxx::document::view & oplog_query,
39 const std::string & ns,
40 const boost::function<
void(bsoncxx::document::view)> &callback);
44 mongocxx::change_stream change_stream;
45 bsoncxx::document::value filter_query;
48 boost::function<void(bsoncxx::document::view)> callback;
Manager to realize triggers on events in the robot memory.
Class holding all information about an EventTrigger.
EventTrigger(mongocxx::change_stream &&change_stream, const bsoncxx::document::view &oplog_query, const std::string &ns, const boost::function< void(bsoncxx::document::view)> &callback)
Constructor.