Parse a Transport Stream packet. More...
#include <senf/Packets/MPEGDVBBundle/TransportPacket.hh>
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 PacketData * | state_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... | |
PacketData & | data () 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... | |
Parse a Transport Stream packet.
Parser implementing the header of a MPEG Transport Stream packet.
Definition at line 35 of file TransportPacket.hh.
Definition at line 39 of file TransportPacket.hh.
senf::UIntFieldParser<?,?+ 2 > senf::TransportPacketParser::adaptation_field_ctrl | ( | ) | const |
senf::UIntFieldParser<?,?+ 4 > senf::TransportPacketParser::continuity_counter | ( | ) | const |
|
inline |
Definition at line 58 of file TransportPacket.hh.
void senf::TransportPacketParser::init_fields | ( | ) | const |
Definition at line 29 of file TransportPacket.cc.
senf::UIntFieldParser<?,?+ 13 > senf::TransportPacketParser::pid | ( | ) | const |
senf::UInt8Parser senf::TransportPacketParser::pointer_field | ( | ) | const |
Definition at line 38 of file TransportPacket.cc.
|
protected |
senf::FlagParser<?>::value_type senf::TransportPacketParser::pusi | ( | ) | const |
void senf::TransportPacketParser::setPUSI | ( | bool | pusi | ) | const |
Definition at line 44 of file TransportPacket.cc.
UInt8Parser senf::TransportPacketParser::sync_byte | ( | ) | const |
senf::FlagParser<?> senf::TransportPacketParser::transport_error_indicator | ( | ) | const |
senf::FlagParser<?> senf::TransportPacketParser::transport_priority | ( | ) | const |
senf::UIntFieldParser<?,?+ 2 > senf::TransportPacketParser::transport_scrmbl_ctrl | ( | ) | const |