From: tho Date: Tue, 13 Nov 2007 15:35:45 +0000 (+0000) Subject: simplified (hopefully) to documentation for the PacketTypes X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=0c7cac49ccb989bf0bcd017db71158ab998d4220;p=senf.git simplified (hopefully) to documentation for the PacketTypes git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@513 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Packets/DefaultBundle/EthernetPacket.hh b/Packets/DefaultBundle/EthernetPacket.hh index f7d8e6d..98d09ab 100644 --- a/Packets/DefaultBundle/EthernetPacket.hh +++ b/Packets/DefaultBundle/EthernetPacket.hh @@ -109,10 +109,11 @@ namespace senf { : public PacketTypeBase, public PacketTypeMixin { +#ifndef DOXYGEN typedef PacketTypeMixin mixin; typedef ConcretePacket packet; typedef Parse_Ethernet parser; - +#endif using mixin::nextPacketRange; using mixin::nextPacketType; using mixin::initSize; @@ -128,7 +129,7 @@ namespace senf { }; /** \brief Ethernet packet typedef */ - typedef EthernetPacketType::packet EthernetPacket; + typedef ConcretePacket EthernetPacket; /** \brief Parse an ethernet VLAN tag @@ -169,10 +170,11 @@ namespace senf { : public PacketTypeBase, public PacketTypeMixin { +#ifndef DOXYGEN typedef PacketTypeMixin mixin; typedef ConcretePacket packet; typedef Parse_EthVLan parser; - +#endif using mixin::nextPacketRange; using mixin::nextPacketType; using mixin::initSize; @@ -188,7 +190,7 @@ namespace senf { }; /** \brief Ethernet VLAN tag typedef */ - typedef EthVLanPacketType::packet EthVLanPacket; + typedef ConcretePacket EthVLanPacket; } diff --git a/Packets/DefaultBundle/IpV4Packet.hh b/Packets/DefaultBundle/IpV4Packet.hh index 00e2fdb..5b45f69 100644 --- a/Packets/DefaultBundle/IpV4Packet.hh +++ b/Packets/DefaultBundle/IpV4Packet.hh @@ -135,10 +135,11 @@ namespace senf { : public PacketTypeBase, public PacketTypeMixin { +#ifndef DOXYGEN typedef PacketTypeMixin mixin; typedef ConcretePacket packet; typedef Parse_IpV4 parser; - +#endif using mixin::nextPacketRange; using mixin::nextPacketType; using mixin::initSize; @@ -152,7 +153,7 @@ namespace senf { }; /** \brief IpV4 packet typedef */ - typedef IpV4PacketType::packet IpV4Packet; + typedef ConcretePacket IpV4Packet; } diff --git a/Packets/DefaultBundle/IpV6Extensions.hh b/Packets/DefaultBundle/IpV6Extensions.hh index 8d922b7..96a2ab4 100644 --- a/Packets/DefaultBundle/IpV6Extensions.hh +++ b/Packets/DefaultBundle/IpV6Extensions.hh @@ -75,10 +75,11 @@ namespace senf { : public PacketTypeBase, public PacketTypeMixin { +#ifndef DOXYGEN typedef PacketTypeMixin mixin; typedef ConcretePacket packet; typedef Parse_IpV6Extension_Fragment parser; - +#endif using mixin::nextPacketRange; using mixin::nextPacketType; using mixin::initSize; @@ -94,7 +95,7 @@ namespace senf { }; /** \brief IpV6 fragment extension packet typedef */ - typedef IpV6ExtensionType_Fragment::packet IpV6Extension_Fragment; + typedef ConcretePacket IpV6Extension_Fragment; } ///////////////////////////////hh.e//////////////////////////////////////// diff --git a/Packets/DefaultBundle/IpV6Packet.hh b/Packets/DefaultBundle/IpV6Packet.hh index da0b046..bb7feb4 100644 --- a/Packets/DefaultBundle/IpV6Packet.hh +++ b/Packets/DefaultBundle/IpV6Packet.hh @@ -102,10 +102,11 @@ namespace senf { : public PacketTypeBase, public PacketTypeMixin { +#ifndef DOXYGEN typedef PacketTypeMixin mixin; typedef ConcretePacket packet; typedef Parse_IpV6 parser; - +#endif using mixin::nextPacketRange; using mixin::nextPacketType; using mixin::initSize; @@ -120,7 +121,7 @@ namespace senf { }; /** \brief IpV6 packet typedef */ - typedef IpV6PacketType::packet IpV6Packet; + typedef ConcretePacket IpV6Packet; ///@} } diff --git a/Packets/DefaultBundle/UDPPacket.hh b/Packets/DefaultBundle/UDPPacket.hh index 9e0177b..2c662d3 100644 --- a/Packets/DefaultBundle/UDPPacket.hh +++ b/Packets/DefaultBundle/UDPPacket.hh @@ -77,10 +77,11 @@ namespace senf { : public PacketTypeBase, public PacketTypeMixin { +#ifndef DOXYGEN typedef PacketTypeMixin mixin; typedef ConcretePacket packet; typedef Parse_UDP parser; - +#endif using mixin::nextPacketRange; using mixin::initSize; using mixin::init; @@ -91,7 +92,7 @@ namespace senf { }; /** \brief UDP packet typedef */ - typedef UDPPacketType::packet UDPPacket; + typedef ConcretePacket UDPPacket; } diff --git a/Packets/MPEGDVBBundle/TLVPacket.hh b/Packets/MPEGDVBBundle/TLVPacket.hh index 955160e..3954df9 100644 --- a/Packets/MPEGDVBBundle/TLVPacket.hh +++ b/Packets/MPEGDVBBundle/TLVPacket.hh @@ -114,9 +114,10 @@ namespace senf { struct TLVPacketType : public PacketTypeBase { +#ifndef DOXYGEN typedef ConcretePacket > packet; typedef Parse_TLVPacket parser; - +#endif static optional_range nextPacketRange(packet p); static size_type initSize(); @@ -127,10 +128,10 @@ namespace senf { typedef TLVPacketType::packet TLVPacket; - typedef TLVPacketType::packet TLVFix8Packet; - typedef TLVPacketType::packet TLVFix16Packet; - typedef TLVPacketType::packet TLVFix24Packet; - typedef TLVPacketType::packet TLVFix32Packet; + typedef ConcretePacket > TLVFix8Packet; + typedef ConcretePacket > TLVFix16Packet; + typedef ConcretePacket > TLVFix24Packet; + typedef ConcretePacket > TLVFix32Packet; }