|
ShishGL
1.0
A simple modular cross-platform graphics library
|
|
Go to the documentation of this file.
2 #ifndef SHISHGL_SUBSCRIPTION_MANAGER_HPP
3 #define SHISHGL_SUBSCRIPTION_MANAGER_HPP
7 #include <unordered_map>
8 #include <unordered_set>
31 static void dump(
const std::string_view& filename);
37 using SubscriptionPool =
38 std::unordered_map<Listener*, std::unordered_map<Listener*, EventMask>>;
42 static SubscriptionPool& Subscriptions();
49 #endif //SHISHGL_SUBSCRIPTION_MANAGER_HPP
virtual ~SubscriptionManager()=default
static void dump(const std::string_view &filename)
Definition: SubscriptionManager.cpp:49
Definition: WindowManager.hpp:13
Definition: SubscriptionManager.hpp:16
static void unsubscribeFromAll(Listener *receiver)
Definition: SubscriptionManager.cpp:41
static void unsubscribe(Listener *receiver, Listener *sender, EventMask mask)
Definition: SubscriptionManager.cpp:28
Definition: EventSystem.hpp:9
Definition: CoreApplication.hpp:10
SubscriptionManager()=delete
Definition: Listener.hpp:7
static void unsubscribeAll(Listener *sender)
Definition: SubscriptionManager.cpp:35
static void subscribe(Listener *receiver, Listener *sender, EventMask mask)
Definition: SubscriptionManager.cpp:18
uint64_t EventMask
Definition: Event.hpp:11