10#include <spdlog/spdlog.h>
43 template <
typename BC>
50 if (message_ == message) {
58 std::function<void(
int)> f_;
Enums for observer messages.
Implementation of the observer design pattern with broadcasters.
Definition: assemblermanipulatorbuildingblocks.hh:22
GenericListener class for observing specific messages. This class template implements an listener for...
Definition: genericlistener.hh:25
void updateImpl(Messages message)
Definition: genericlistener.hh:49
GenericListener & subscribeTo(BC &bc)
Definition: genericlistener.hh:44
GenericListener(Messages message, F &&f)
Constructor for GenericListener.
Definition: genericlistener.hh:39
Definition: listener.hh:27
auto subscribe(Broadcaster &broadcaster, F &&f)
Function to subscribe to a broadcaster with a given function (either a lambda, std::function or funct...
Definition: listener.hh:43