Fawkes API Fawkes Development Version
EventTrigger Class Reference

Class holding all information about an EventTrigger. More...

#include <event_trigger.h>

Public Member Functions

 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. More...
 

Friends

class EventTriggerManager
 Information access for Manager. More...
 

Detailed Description

Class holding all information about an EventTrigger.

Author
Frederik Zwilling

Definition at line 31 of file event_trigger.h.

Constructor & Destructor Documentation

◆ EventTrigger()

EventTrigger::EventTrigger ( mongocxx::change_stream &&  change_stream,
const bsoncxx::document::view &  filter_query,
const std::string &  ns,
const boost::function< void(bsoncxx::document::view)> &  callback 
)

Constructor.

Parameters
change_streamThe change stream for the collection, already moved to the end
filter_queryThe query to use for filtering the change stream
nsnamespace of the trigger, format db.collection
callbackReference to callback function

Definition at line 39 of file event_trigger.cpp.

◆ ~EventTrigger()

EventTrigger::~EventTrigger ( )
virtual

Definition at line 54 of file event_trigger.cpp.

Friends And Related Function Documentation

◆ EventTriggerManager

friend class EventTriggerManager
friend

Information access for Manager.

Definition at line 34 of file event_trigger.h.


The documentation for this class was generated from the following files: