void notify()
Update all of the observers that a change has been made.
std::set< Observer * > m_observers
void detach(Observer *listener)
void attach(Observer *listener)
Simple observer class (for void functions/slots).
std::function< void()> m_slot
void update() override
Calls the function/slot.
void setSlot(const std::function< void()> &func)
Sets the function/slot for the oberver.