17 #ifndef HH_SENF_Packets_80221Bundle_MIHMessageRegistry_ 18 #define HH_SENF_Packets_80221Bundle_MIHMessageRegistry_ 1 21 #include <boost/ptr_container/ptr_map.hpp> 38 typedef boost::ptr_map<key_t, detail::MIHMessageRegistry_EntryBase > Map;
45 template <
typename MIHPacket>
50 template <
typename MIHPacket>
56 const_iterator
begin()
const;
57 const_iterator
end()
const;
61 # define SENF_MIH_PACKET_REGISTRY_REGISTER( packet, messageId ) \ 62 SENF_PACKET_REGISTRY_REGISTER( \ 63 senf::MIHMessageRegistry, messageId, packet ) \ 65 senf::MIHMessageRegistry::RegistrationProxy< packet > \ 66 BOOST_PP_CAT(mihPacketRegistration_, __LINE__) (messageId); \ void validate(key_t messageId, senf::Packet message)
const_iterator begin() const
RegistrationProxy(key_t messageId)
raw_container::const_iterator const_iterator
void registerMessageType(key_t messageId)
const_iterator end() const
Map::const_iterator const_iterator