Packets: added GenericTLVParserRegistry
[senf.git] / senf / Packets / MPEGDVBBundle / SNDUPacket.cc
index 9590310..e6761b3 100644 (file)
 
 // Custom includes
 #include <iomanip>
-#include "../../Utils/hexdump.hh"
-#include "../../Packets/DefaultBundle/EthernetPacket.hh"
+#include <senf/Packets/DefaultBundle/EthernetPacket.hh>
 
 
 #define prefix_
 ///////////////////////////////cc.p////////////////////////////////////////
 
-//namespace {
-//    senf::PacketRegistry<senf::EtherTypes>::RegistrationProxy<senf::EthVLanPacketType>
-//        registerEthVLanPacket(0x8100);
-//}
-
-
 prefix_ boost::uint32_t senf::SNDUPacketParser::calcCrc()
     const
 {
@@ -90,12 +83,12 @@ prefix_ void senf::SNDUPacketType::dump(packet p, std::ostream & os)
 {
     os << "SNDUPacket:\n"
        << std::dec
-       <<     "  d_bit                   : " << p->d_bit() << "\n"
-       <<     "  length                  : " << unsigned(p->length()) << "\n"
+       << senf::fieldName("d_bit")  << p->d_bit() << "\n"
+       << senf::fieldName("length") << unsigned(p->length()) << "\n"
        << std::hex
-       <<     "  type                    : 0x" << unsigned(p->type()) << "\n"
+       << senf::fieldName("type")   << "0x" << unsigned(p->type()) << "\n"
        << std::dec
-       <<     "  crc                     : " << unsigned(p->crc()) << "\n";
+       << senf::fieldName("crc")    << unsigned(p->crc()) << "\n";
 }
 
 prefix_ senf::PacketParserBase::size_type senf::SNDUPacketType::initSize()