Mcalc
0.1
a machinist's calculator
|
#include <broadcaster.hpp>
Public Member Functions | |
~Broadcaster () | |
void | subscribe (Subscriber *s) |
void | broadcast (Event e) |
Static Public Member Functions | |
static Broadcaster * | get_instance () |
The Broadcaster singleton class that acts as a communication channel for Interfaces.
mc::Broadcaster::~Broadcaster | ( | ) |
The destructor
void mc::Broadcaster::broadcast | ( | Event | e | ) |
Broadcast an event to all subscribed interfaces
|
static |
Get the singleton instance of broadcaster
void mc::Broadcaster::subscribe | ( | Subscriber * | s | ) |
Subscribe a subscriber to receive notifications