24 #ifndef _OBSERVABLE_EVTVAR_H
25 #define _OBSERVABLE_EVTVAR_H
34 #include "observable.h"
90 const void Notify(std::shared_ptr<void> p,
const std::string& s,
int n = 0) {
95 std::string Autokey() {
96 static std::atomic<unsigned long> last_ix(0);
97 return std::string(
"!@%/+") + std::to_string(last_ix++);
Generic event handling between MVC Model and Controller based on a shared EventVar variable.
const void Notify(int n, const std::string &s)
Notify all listeners about variable change with a string and an int.
const void Notify(std::shared_ptr< void > p, const std::string &s, int n=0)
Notify all listeners about variable change with shared_ptr, a string and an optional number.
const void Notify()
Notify all listeners, no data supplied.
const void Notify(const std::string &s)
Notify all listeners about variable change with a string.
const void Notify(void *data)
Notify all listeners about variable change with ClientData.
The observable notify/listen basic nuts and bolts.
virtual const void Notify()
Notify all listeners about variable change.