27#include "events/observer.hpp"
28#include "events/event.hpp"
29#include "lessPtrCompare.hpp"
30#include "singleton.hpp"
51 std::mutex _eventMutex;
54 std::mutex _queueMutex;
60 std::queue<anch::events::Event<T>> _events;
126 void fireEvent(
const T& event,
const std::map<std::string,std::string>& headers = {})
noexcept;
141 static void FireEvent(
const T& event,
const std::map<std::string,std::string>& headers = {})
noexcept;
159 void processEvents() noexcept;
166#include "events/impl/eventBus.hpp"
Meyers' singleton implementation.
Definition singleton.hpp:34
static void FireEvent(const T &event, const std::map< std::string, std::string > &headers={}) noexcept
void removeObserver(anch::events::Observer< T > &observer) noexcept
static void FireEvent(const anch::events::Event< T > &event) noexcept
static bool AddObserver(anch::events::Observer< T > &observer) noexcept
bool addObserver(anch::events::Observer< T > &observer) noexcept
void fireEvent(const anch::events::Event< T > &event) noexcept
static void RemoveObserver(anch::events::Observer< T > &observer) noexcept
void fireEvent(const T &event, const std::map< std::string, std::string > &headers={}) noexcept
An observer interface of the observers/observable design pattern.
Definition observer.hpp:39
Events management namespace.
Definition event.hpp:25
Less comparator based on object address.
Definition lessPtrCompare.hpp:34
Event representation.
Definition event.hpp:37