22 #include <boost/io/ios_state.hpp> 53 boost::io::ios_all_saver ias(os);
54 os <<
"TransportPacket:\n" 56 <<
senf::fieldName(
"syncByte") <<
"0x" << unsigned(p->sync_byte()) <<
"\n" 57 <<
senf::fieldName(
"transport error ind.") <<
"0x" << unsigned(p->transport_error_indicator()) <<
"\n" 58 <<
senf::fieldName(
"payload unit start ind.") <<
"0x" << unsigned(p->pusi()) <<
"\n" 59 <<
senf::fieldName(
"transport priority") <<
"0x" << unsigned(p->transport_priority()) <<
"\n" 63 <<
senf::fieldName(
"transport scrambling c.") <<
"0x" << unsigned(p->transport_scrmbl_ctrl()) <<
"\n" 64 <<
senf::fieldName(
"adaptation field ctrl") <<
"0x" << unsigned(p->adaptation_field_ctrl()) <<
"\n" 65 <<
senf::fieldName(
"continuity counter") <<
"0x" << unsigned(p->continuity_counter()) <<
"\n";
67 os <<
senf::fieldName(
"pointer field") <<
"0x" << unsigned(p->pointer_field()) <<
"\n";
senf::Parse_Variant_Direct< pusi_t,?,(VoidPacketParser)(UInt8Parser) >::parser pointer_field_() const
static void dump(packet p, std::ostream &os)
Dump given Transport packet in readable form to given output stream.
senf::UIntFieldParser<?,?+2 > transport_scrmbl_ctrl() const
Parse 8bit unsigned byte aligned integer.
std::string fieldName(std::string const &s)
static const byte SYNC_BYTE
void setPUSI(bool pusi) const
senf::FlagParser<?> transport_error_indicator() const
senf::FlagParser<?>::value_type pusi() const
Protocol specific packet handle.
UInt8Parser pointer_field() const
UInt8Parser sync_byte() const
SENF_PACKET_INSTANTIATE_TEMPLATE(senf::TransportPacket)
TransportPacket public header.
senf::UIntFieldParser<?,?+2 > adaptation_field_ctrl() const