EventType represents a specific event and stores all the listeners for that event.
More...
#include <EventType.h>
List of all members.
Detailed Description
EventType represents a specific event and stores all the listeners for that event.
Constructor & Destructor Documentation
LibCT::EventType::EventType |
( |
const std::string & |
name | ) |
|
LibCT::EventType::~EventType |
( |
| ) |
|
Member Function Documentation
unsigned int LibCT::EventType::Deref |
( |
| ) |
|
Decrement ref count
- Returns:
- Current ref count (after decrement)
void LibCT::EventType::Dispatch |
( |
int |
priority, |
|
|
EventData * |
pEventData |
|
) |
| |
Dispatch an event to all listeners.
- Parameters:
-
priority | Priority of the event |
pEventData | Custom data to send with the event |
Dispatch an event to a specific listener.
- Parameters:
-
pTarget | EventListener to send the event to |
priority | Priority of the event |
pEventData | Custom data to send with the event |
const std::string& LibCT::EventType::GetName |
( |
| ) |
const |
unsigned int LibCT::EventType::Ref |
( |
| ) |
|
Increment ref count
- Returns:
- Current ref count (after increment)
Register a new EventListener
- Returns:
- A ListenerHandle representing this connecton
- Parameters:
-
pEventListener | Instance that will be listening |
Callback | Member function to call when the event fires |
Unregister a listener.
- Parameters:
-
handle | ListenerHandle representing the connection to break |
Member Data Documentation
Number of loaded projects that ref this event.
The documentation for this class was generated from the following file: