This is a subscriber slot class that passes on the event firing to a custom subscriber class. More...
#include <eventsubscriberslot.h>
Public Member Functions | |
CustomSubscriberSlot (Event *Ev, EventSubscriber *Sub) | |
Class constructor. More... | |
virtual | ~CustomSubscriberSlot () |
Class destructor. | |
virtual void | _NotifyEvent (EventArgumentsPtr Args) |
Notifies this subscriber of an event being fired. More... | |
EventSubscriber * | GetSubscriber () const |
Gets a pointer to the subscriber used by this subscriber slot. More... | |
virtual SlotType | GetType () const |
Gets the type of subscriber slot this is. More... | |
Public Member Functions inherited from Mezzanine::EventSubscriberSlot | |
EventSubscriberSlot (Event *Ev) | |
Class constructor. More... | |
virtual | ~EventSubscriberSlot () |
Class destructor. | |
Event * | GetEvent () const |
Gets the set of events the subscriber is subscribed to. More... | |
Protected Attributes | |
EventSubscriber * | Subscriber |
A pointer to the custom subscriber that the event will be passed on to. More... | |
Protected Attributes inherited from Mezzanine::EventSubscriberSlot | |
Event * | SubbedEvent |
A pointer to the connected event. More... | |
Additional Inherited Members | |
Public Types inherited from Mezzanine::EventSubscriberSlot | |
enum | SlotType { ST_Custom = 1, ST_Functor = 2, ST_CFunction = 3, ST_Script = 4, ST_MemberFunction = 5 } |
This enum is used to describe the type of SubscriberSlot an instance is, to be used for casting. | |
This is a subscriber slot class that passes on the event firing to a custom subscriber class.
Definition at line 103 of file eventsubscriberslot.h.
Mezzanine::CustomSubscriberSlot::CustomSubscriberSlot | ( | Event * | Ev, |
EventSubscriber * | Sub | ||
) |
Class constructor.
Ev | The event this subscriber slot belongs to. |
SubScript | The subscriber script to be called when the event is fired. |
Definition at line 70 of file eventsubscriberslot.cpp.
|
virtual |
Notifies this subscriber of an event being fired.
Args | The arguments containing specific information regarding this event. |
Implements Mezzanine::EventSubscriberSlot.
Definition at line 90 of file eventsubscriberslot.cpp.
EventSubscriber * Mezzanine::CustomSubscriberSlot::GetSubscriber | ( | ) | const |
Gets a pointer to the subscriber used by this subscriber slot.
Definition at line 81 of file eventsubscriberslot.cpp.
|
virtual |
Gets the type of subscriber slot this is.
Implements Mezzanine::EventSubscriberSlot.
Definition at line 84 of file eventsubscriberslot.cpp.
|
protected |
A pointer to the custom subscriber that the event will be passed on to.
Definition at line 108 of file eventsubscriberslot.h.