This is a subscriber slot class that triggers a Free/C-style function. More...
#include <eventsubscriberslot.h>
Inheritance diagram for Mezzanine::CFunctionSubscriberSlot:
Collaboration diagram for Mezzanine::CFunctionSubscriberSlot:Public Types | |
| typedef void( | SubscriberFunction )(const EventArguments &Args) |
| This is a convenience typedef for a c-style method that accepts EventArguments. | |
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. | |
Public Member Functions | |
| CFunctionSubscriberSlot (Event *Ev, SubscriberFunction *Funct) | |
| Class constructor. More... | |
| virtual | ~CFunctionSubscriberSlot () |
| Class destructor. | |
| virtual void | _NotifyEvent (const EventArguments &Args) |
| Notifies this subscriber of an event being fired. More... | |
| SubscriberFunction * | GetFunction () const |
| Gets a pointer to the function 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 | |
| SubscriberFunction * | Function |
| A pointer to the c-style function to be called when the event is fired. More... | |
Protected Attributes inherited from Mezzanine::EventSubscriberSlot | |
| Event * | SubbedEvent |
| A pointer to the connected event. More... | |
This is a subscriber slot class that triggers a Free/C-style function.
Definition at line 186 of file eventsubscriberslot.h.
| Mezzanine::CFunctionSubscriberSlot::CFunctionSubscriberSlot | ( | Event * | Ev, |
| SubscriberFunction * | Funct | ||
| ) |
Class constructor.
| Ev | The event this subscriber slot belongs to. |
| Funct | The C-style function to be called when the event is fired. |
Definition at line 123 of file eventsubscriberslot.cpp.
|
virtual |
Notifies this subscriber of an event being fired.
Implements Mezzanine::EventSubscriberSlot.
Definition at line 143 of file eventsubscriberslot.cpp.
| CFunctionSubscriberSlot::SubscriberFunction * Mezzanine::CFunctionSubscriberSlot::GetFunction | ( | ) | const |
Gets a pointer to the function used by this subscriber slot.
Definition at line 134 of file eventsubscriberslot.cpp.
|
virtual |
Gets the type of subscriber slot this is.
Implements Mezzanine::EventSubscriberSlot.
Definition at line 137 of file eventsubscriberslot.cpp.
|
protected |
A pointer to the c-style function to be called when the event is fired.
Definition at line 194 of file eventsubscriberslot.h.
1.8.4