class utils::EventHandler¶
Overview¶
Provides an interface for registering and processing events for inherited classes. More…
#include <EventHandler.h> class EventHandler { public: // structs struct Event; // methods virtual void PollEvents(); protected: // typedefs typedef std::string EventId; // methods virtual void ProcessEvent(] const Event* e); template <typename T = Event, typename... Args> void RegisterEvent(Args... args); };
Detailed Documentation¶
Provides an interface for registering and processing events for inherited classes.
Children of this class can register events at any time, but process them together when user requests to.
This class is thread safe and can be called from asynchronous processes.