6 #include <unordered_map>
13 typedef std::unordered_map<ProtocolId, IProtocolHandler*> ProtocolHandlers;
14 ProtocolHandlers _registry;
29 inline void registerHandler(
const ProtocolId& type,
IProtocolHandler* handler) {
30 _registry.insert(std::make_pair(type, handler));
34 ProtocolHandlers::iterator i = _registry.find(msg.getId());
35 if (i != _registry.end())
Definition: ProtocolHandlerRegistry.h:11
A protocol message is used for the serialization of the ai states for remote debugging.
Definition: IProtocolMessage.h:60
Interface for the execution of assigned IProtocolMessage.
Definition: IProtocolHandler.h:19