std::map< MessageID, IMessageHandler * > fHandlers
Definition: MessageHandler.h:50
virtual tresult handleMessage(Message const &iMessage)=0
void registerHandler(MessageID iMessageID, IMessageHandler *iMessageHandler)
Definition: MessageHandler.cpp:42
tresult handleMessage(Message const &iMessage) override
Definition: MessageHandler.cpp:29
Simple wrapper class with better api.
Definition: Messaging.h:42
Interface defining a message handler.
Definition: MessageHandler.h:30
virtual ~IMessageHandler()=default
Simple implementation of IMessageHandler which will delegate the message handling based on MessageID.
Definition: MessageHandler.h:39
int MessageID
Definition: Messaging.h:37