29#ifndef OBSERVABLE___EVTVAR__H
30#define OBSERVABLE___EVTVAR__H
97 void Notify(
const std::shared_ptr<void>& p,
const std::string& s,
int n = 0) {
102 void Notify(
const std::shared_ptr<const void>& p) {
107 std::string Autokey() {
108 static std::atomic<unsigned long> last_ix(0);
109 return std::string(
"!@%/+") + std::to_string(last_ix++);
Generic event handling between MVC Model and Controller based on a shared EventVar variable.
void Notify(int n, const std::string &s)
Notify all listeners about variable change with a string and an int.
void Notify() override
Notify all listeners, no data supplied.
void Notify(const std::shared_ptr< const void > &p)
Notify all listeners about variable change with const* shared_ptr,.
void Notify(const std::string &s)
Notify all listeners about variable change with a string.
void Notify(const 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.
void Notify(void *data)
Notify all listeners about variable change with ClientData.
void Notify(int n, void *p)
Notify all listeners about variable change with an int and ClientData.
The observable notify/listen basic nuts and bolts.
virtual void Notify()
Notify all listeners about variable change.
General observable implementation with several specializations.