X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2F80221Bundle%2FMIHPacket.hh;h=385b2ff9ac0ae202f41fcf06693a203b1b3a58a7;hb=ff305084cba283649a2c97e73d2608c3e4598683;hp=227d7cd87ce73eea723de57419988df0b913900b;hpb=9cb871b939efe93e35dd96808d25089399acfc46;p=senf.git diff --git a/senf/Packets/80221Bundle/MIHPacket.hh b/senf/Packets/80221Bundle/MIHPacket.hh index 227d7cd..385b2ff 100644 --- a/senf/Packets/80221Bundle/MIHPacket.hh +++ b/senf/Packets/80221Bundle/MIHPacket.hh @@ -29,22 +29,13 @@ // Custom includes #include #include "TLVParser.hh" +#include "MIHMessageRegistry.hh" //#include "MIHPacket.mpp" -///////////////////////////////hh.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// namespace senf { - struct MIHMessageRegistry { - // MIH messages registry - typedef boost::uint16_t key_t; - }; - -# define SENF_MIH_PACKET_REGISTRY_REGISTER( packet ) \ - SENF_PACKET_REGISTRY_REGISTER( \ - senf::MIHMessageRegistry, packet::type::MESSAGE_ID, packet ) - - /** \brief Parse a MIH packet Parser implementing the MIH header. The fields implemented are: @@ -106,9 +97,7 @@ namespace senf { : public PacketTypeBase, public PacketTypeMixin { -#ifndef DOXYGEN typedef PacketTypeMixin mixin; -#endif typedef ConcretePacket packet; ///< MIH packet typedef typedef MIHPacketParser parser; ///< typedef to the parser of MIH packet @@ -120,6 +109,8 @@ namespace senf { static void dump(packet p, std::ostream &os); static void finalize(packet p); static factory_t nextPacketType(packet p); + + static std::pair validate(packet p); }; /** \brief MIH packet typedef @@ -139,9 +130,7 @@ namespace senf { : public PacketTypeBase, public PacketTypeMixin { -#ifndef DOXYGEN typedef PacketTypeMixin mixin; -#endif typedef ConcretePacket packet; ///< MIH Payload packet typedef typedef MIHGenericPayloadPacketParser parser; ///< typedef to the parser of MIH Payload packet @@ -161,7 +150,7 @@ namespace senf { } -///////////////////////////////hh.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// //#include "MIHPacket.cci" //#include "MIHPacket.ct" //#include "MIHPacket.cti"