25#ifndef OBSERVABLE_GLOBVAR_H
26#define OBSERVABLE_GLOBVAR_H
75 void Set(
const T& arg) {
80 T Get() {
return *variable; }
virtual void Notify()
Notify all listeners to configured key about variable change.
Observable(const std::string &_key)
Initiate an object which can apply Notify() and Listen() to given key.
General observable pattern implementation built on top of wxWidgets event handling.
std::string PtrKey(const void *ptr)
Return address as printable string.