Jamba C++ API  6.2.0
MessageHandler Class Reference

Simple implementation of IMessageHandler which will delegate the message handling based on MessageID. More...

#include <MessageHandler.h>

Inherits IMessageHandler.

Public Member Functions

tresult handleMessage (Message const &iMessage) override
 
void registerHandler (MessageID iMessageID, IMessageHandler *iMessageHandler)
 
- Public Member Functions inherited from IMessageHandler
virtual ~IMessageHandler ()=default
 

Private Attributes

std::map< MessageID, IMessageHandler * > fHandlers {}
 

Detailed Description

Simple implementation of IMessageHandler which will delegate the message handling based on MessageID.

Member Function Documentation

◆ handleMessage()

tresult handleMessage ( Message const &  iMessage)
overridevirtual

Implements IMessageHandler.

◆ registerHandler()

void registerHandler ( MessageID  iMessageID,
IMessageHandler iMessageHandler 
)

Member Data Documentation

◆ fHandlers

std::map<MessageID, IMessageHandler *> fHandlers {}
private

The documentation for this class was generated from the following files: