senf::TransportPacketParser Struct Reference

Parse a Transport Stream packet. More...

#include <senf/Packets/MPEGDVBBundle/TransportPacket.hh>

Inheritance diagram for senf::TransportPacketParser:

Public Types

typedef UInt8Parser sync_byte_t
 
- Public Types inherited from senf::PacketParserBase
typedef detail::packet::iterator data_iterator
 Raw data iterator type. More...
 
typedef detail::packet::size_type size_type
 Unsigned integral type. More...
 
typedef detail::packet::difference_type difference_type
 Signed integral type. More...
 
typedef detail::packet::byte byte
 Unsigned 8bit value, the raw value type. More...
 
typedef PacketDatastate_type
 Type of the 'state' parameter. More...
 
typedef PacketParserBase parser_base_type
 Base type of the next parser. More...
 

Public Member Functions

UInt8Parser sync_byte () const
 
senf::FlagParser<?> transport_error_indicator () const
 
senf::FlagParser<?>::value_type pusi () const
 
senf::FlagParser<?> transport_priority () const
 
senf::UIntFieldParser<?,?+13 > pid () const
 
senf::UIntFieldParser<?,?+2 > transport_scrmbl_ctrl () const
 
senf::UIntFieldParser<?,?+2 > adaptation_field_ctrl () const
 
senf::UIntFieldParser<?,?+4 > continuity_counter () const
 
UInt8Parser pointer_field () const
 
void init_fields () const
 
void setPUSI (bool pusi) const
 
void init ()
 
- Public Member Functions inherited from senf::PacketParserBase
data_iterator i () const
 Return beginning of data to parse. More...
 
data_iterator i (size_type offset) const
 Return iterator offset bytes from the start. More...
 
state_type state () const
 Return state of this parser. More...
 
PacketDatadata () const
 Access the packets raw data container. More...
 
void init () const
 Default implementation. More...
 

Protected Member Functions

senf::Parse_Variant_Direct< pusi_t,?,(VoidPacketParser)(UInt8Parser) >::parser pointer_field_ () const
 
- Protected Member Functions inherited from senf::PacketParserBase
ParserProtector protect () const
 
 PacketParserBase (data_iterator i, state_type s)
 Standard constructor. More...
 
 PacketParserBase (data_iterator i, state_type s, size_type size)
 Size checking constructor. More...
 
bool check (size_type size) const
 Check size of data container. More...
 
void validate (size_type size) const
 Validate size of data container. More...
 
template<class Parser >
Parser parse (data_iterator i) const
 Create sub-parser. More...
 
template<class Parser , class Arg >
Parser parse (Arg const &arg, data_iterator i) const
 Create sub-parser. More...
 
template<class Parser >
Parser parse (size_type n) const
 Create sub-parser. More...
 
template<class Parser , class Arg >
Parser parse (Arg const &arg, size_type n) const
 Create sub-parser. More...
 
void defaultInit () const
 Default implementation. More...
 
Packet packet () const
 Get packet this parser is parsing from. More...
 
void resize (size_type oldSize, size_type newSize)
 Resize data container. More...
 

Detailed Description

Parse a Transport Stream packet.

Parser implementing the header of a MPEG Transport Stream packet.

TransportPacket.png
See also
TransportPacketType

Definition at line 35 of file TransportPacket.hh.

Member Typedef Documentation

◆ sync_byte_t

Member Function Documentation

◆ adaptation_field_ctrl()

senf::UIntFieldParser<?,?+ 2 > senf::TransportPacketParser::adaptation_field_ctrl ( ) const

◆ continuity_counter()

senf::UIntFieldParser<?,?+ 4 > senf::TransportPacketParser::continuity_counter ( ) const

◆ init()

void senf::TransportPacketParser::init ( )
inline

Definition at line 58 of file TransportPacket.hh.

◆ init_fields()

void senf::TransportPacketParser::init_fields ( ) const

Definition at line 29 of file TransportPacket.cc.

◆ pid()

senf::UIntFieldParser<?,?+ 13 > senf::TransportPacketParser::pid ( ) const

◆ pointer_field()

senf::UInt8Parser senf::TransportPacketParser::pointer_field ( ) const

Definition at line 38 of file TransportPacket.cc.

◆ pointer_field_()

senf::Parse_Variant_Direct< pusi_t,?, (VoidPacketParser) (UInt8Parser) >::parser senf::TransportPacketParser::pointer_field_ ( ) const
protected

◆ pusi()

senf::FlagParser<?>::value_type senf::TransportPacketParser::pusi ( ) const

◆ setPUSI()

void senf::TransportPacketParser::setPUSI ( bool  pusi) const

Definition at line 44 of file TransportPacket.cc.

◆ sync_byte()

UInt8Parser senf::TransportPacketParser::sync_byte ( ) const

◆ transport_error_indicator()

senf::FlagParser<?> senf::TransportPacketParser::transport_error_indicator ( ) const

◆ transport_priority()

senf::FlagParser<?> senf::TransportPacketParser::transport_priority ( ) const

◆ transport_scrmbl_ctrl()

senf::UIntFieldParser<?,?+ 2 > senf::TransportPacketParser::transport_scrmbl_ctrl ( ) const

The documentation for this struct was generated from the following files: