22 #ifndef FAWKES_SRC_PLUGINS_ROBOT_MEMORY_EVENT_TRIGGER_H_ 23 #define FAWKES_SRC_PLUGINS_ROBOT_MEMORY_EVENT_TRIGGER_H_ 25 #include <mongo/client/dbclient.h> 27 #include <boost/function.hpp> 30 typedef std::unique_ptr<mongo::DBClientCursor> QResCursor;
39 const std::string & ns,
40 const boost::function<
void(mongo::BSONObj)> &callback);
44 mongo::Query oplog_query;
47 QResCursor oplog_cursor;
48 boost::function<void(mongo::BSONObj)> callback;
Manager to realize triggers on events in the robot memory.
Class holding all information about an EventTrigger.
EventTrigger(mongo::Query oplog_query, const std::string &ns, const boost::function< void(mongo::BSONObj)> &callback)
Constructor.