Mcalc  0.1
a machinist's calculator
Public Types | Public Member Functions | List of all members
mc::Event Class Reference

#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 ()
 
Interfacesender ()
 

Detailed Description

Events maintain an event type and a pointer to the sender who produced the event.

Member Enumeration Documentation

The type of the event instance

Constructor & Destructor Documentation

mc::Event::Event ( Type  t)

Constructor with no sender, defaults the sender to nullptr

Parameters
tThe type of the new event
mc::Event::Event ( Interface s)

Constructor with no type, defaults the type to ALL

Parameters
sThe sender
mc::Event::Event ( Type  t,
Interface s 
)

Constructor with both type and sender.

Parameters
tThe type of the new event
sThe sender
mc::Event::~Event ( )
inline

The destructor

Member Function Documentation

Interface * mc::Event::sender ( )

Get a pointer to the sender

Returns
The Interface that generated the event
Event::Type mc::Event::type ( )

Get the type of the instance

Returns
The type of Event

The documentation for this class was generated from the following files: