X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FMPEGDVBBundle%2FTLVPacket.hh;h=f52da1cdb4fb384951d7b09a155a955f570faff2;hb=ae06fe86f16fdabb7ffb219d255444d2eb4f4f79;hp=e0ff4e059956f574e7576ac62eca0fc30eddaf56;hpb=759f89cf0952cbc42207e5c4cf059d3906a37e59;p=senf.git diff --git a/Packets/MPEGDVBBundle/TLVPacket.hh b/Packets/MPEGDVBBundle/TLVPacket.hh index e0ff4e0..f52da1c 100644 --- a/Packets/MPEGDVBBundle/TLVPacket.hh +++ b/Packets/MPEGDVBBundle/TLVPacket.hh @@ -28,9 +28,7 @@ // Custom includes #include -#include "../../Packets/PacketType.hh" -#include "../../Packets/ParseInt.hh" -#include "../../Packets/PacketParser.hh" +#include "../../Packets/Packets.hh" //#include "TLVPacket.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -49,11 +47,7 @@ namespace senf { public PacketParserBase { public: -# ifndef DOXYGEN - - SENF_PACKET_PARSER_NO_INIT(Parse_TLVPacketLength); - -# endif + Parse_TLVPacketLength(data_iterator i, state_type s) : PacketParserBase(i,s) {} typedef boost::uint32_t value_type; @@ -86,25 +80,22 @@ namespace senf { /** \brief parse TLVPacket Packet - XXX + \see TLVPacketType */ struct Parse_TLVPacket : public PacketParserBase { -# ifndef DOXYGEN - - SENF_PACKET_PARSER_INIT(Parse_TLVPacket); +# include SENF_PARSER() - SENF_PACKET_PARSER_DEFINE_FIELDS( - ((Field)( type, Parse_UInt32 )) - ((Field)( length, Parse_TLVPacketLength )) - ); + SENF_PARSER_FIELD( type, Parse_UInt32 ); + SENF_PARSER_FIELD( length, Parse_TLVPacketLength ); -# endif + SENF_PARSER_FINALIZE(Parse_TLVPacket); }; /** \brief TLV Packet + \image html TLV.png \par Packet type (typedef): \ref TLVPacket