32 std::map<std::string, std::vector<EventCallback>> m_events;
44 void send(
const std::string& name);
The EventWatcher class defines a mechanism for managing events and callbacks.
Definition event.h:30
void send(const std::string &name)
Triggers an event by its name.
void bind(const std::string &name, EventCallback callback)
Binds a callback function to a specific event name.
std::function< void()> EventCallback
Definition event.h:27