0x0c / thunderclap

Fuck'n simple notification system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

thunderclap

Fuck'n simple notification system.

Usage

// get shared instance
auto t = thunderclap::thunderclap<std::string>::shared_instance();

// add observer
auto idx = t->watch("notification", [](std::string x) {
	std::cout << "notification received!! : " << x << std::endl;
});

// then post notification
t->clap("notification", "param");

// remove observer
t->dispose("notification", idx);

See more at main.cpp.

About

Fuck'n simple notification system.


Languages

Language:C++ 97.6%Language:Makefile 2.4%