![]() |
AnCH Framework
0.1
Another C++ Hack Framework
|
A class which manage global events firing and events QoS. More...
#include <eventBus.hpp>
Public Member Functions | |
bool | addObserver (anch::events::Observer< Event > &observer) noexcept |
void | removeObserver (anch::events::Observer< Event > &observer) noexcept |
void | fireEvent (const Event &event) noexcept |
void | scheduleDeferred (const Event &event) noexcept |
Static Public Member Functions | |
static bool | AddObserver (anch::events::Observer< Event > &observer) noexcept |
static void | RemoveObserver (anch::events::Observer< Event > &observer) noexcept |
static void | FireEvent (const Event &event) noexcept |
static void | ScheduleDeferred (const Event &event) noexcept |
![]() | |
static EventBus< Event > & | getInstance () |
Friends | |
class | anch::Singleton< EventBus< Event > > |
A class which manage global events firing and events QoS.
EventBus is a singleton.
|
inlinenoexcept |
|
inlinestaticnoexcept |
|
inlinenoexcept |
Notify all observer that an event has been fired
event | the event which has been fired |
|
inlinestaticnoexcept |
Retrieve EventBus instance and notify all observer that an event has been fired
event | the event which has been fired |
|
inlinenoexcept |
Remove observer for notifications
observer | The observer to remove |
|
inlinestaticnoexcept |
Retrieve EventBus instance and remove observer for notifications
observer | The observer to remove |
|
inlinenoexcept |
Put event in sheduler.
event | the event to process |
|
inlinestaticnoexcept |
Retrieve EventBus instance and put event in sheduler.
event | the event to process |