Mcalc
0.1
a machinist's calculator
|
#include <broadcaster.hpp>
Public Types | |
enum | Type { ALL, SINGLE } |
Public Member Functions | |
Event (Type t) | |
Event (Interface *s) | |
Event (Type t, Interface *s) | |
~Event () | |
Event::Type | type () |
Interface * | sender () |
Events maintain an event type and a pointer to the sender who produced the event.
enum mc::Event::Type |
The type of the event instance
mc::Event::Event | ( | Type | t | ) |
Constructor with no sender, defaults the sender to nullptr
t | The type of the new event |
mc::Event::Event | ( | Interface * | s | ) |
Constructor with no type, defaults the type to ALL
s | The sender |
Constructor with both type and sender.
t | The type of the new event |
s | The sender |
|
inline |
The destructor
Interface * mc::Event::sender | ( | ) |
Get a pointer to the sender
Event::Type mc::Event::type | ( | ) |
Get the type of the instance