14 #ifndef EVENTDISPATCHER_H__
15 #define EVENTDISPATCHER_H__
55 void dispatch(
const Event& event,
const std::string& context,
bool remove );
78 typedef std::multimap<const std::string, EventHandler*> ContextHandlerMap;
79 typedef std::multimap<Event::EventType, EventHandler*> TypeHandlerMap;
81 ContextHandlerMap m_contextHandlers;
82 TypeHandlerMap m_typeHandlers;
virtual ~EventDispatcher()
void removeEventHandler(EventHandler *eh)
void registerEventHandler(EventHandler *eh, const std::string &context)
void dispatch(const Event &event, const std::string &context, bool remove)
An base class for event handlers.
The namespace for the gloox library.