TSDuck v3.38-3738
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::ETID Class Reference

Extended MPEG table id. More...

#include <tsETID.h>

Public Member Functions

 ETID (TID tid, uint16_t tid_ext)
 Constructor from a long table id and tid-ext.
 
 ETID (TID tid=0xFF)
 Constructor from a short table id.
 
bool isLongSection () const
 Check if the table is a long one.
 
bool isShortSection () const
 Check if the table is a short one.
 
bool operator< (const ETID &e) const
 Comparison operator.
 
bool operator<= (const ETID &e) const
 Comparison operator.
 
bool operator== (const ETID &e) const
 Comparison operator.
 
bool operator> (const ETID &e) const
 Comparison operator.
 
bool operator>= (const ETID &e) const
 Comparison operator.
 
TID tid () const
 Get the table id.
 
uint16_t tidExt () const
 Get the table id extension.
 

Detailed Description

Extended MPEG table id.

For convenience, it is sometimes useful to identify tables using an "extended TID", a combination of TID and TIDext. On one PID, two tables with the same TID but with different TIDext are considered as distinct tables. By convention, the TIDext is always zero with short sections.

Constructor & Destructor Documentation

◆ ETID() [1/2]

ts::ETID::ETID ( TID  tid = 0xFF)
inlineexplicit

Constructor from a short table id.

Short tables have no TIDext.

Parameters
[in]tidTable id.

◆ ETID() [2/2]

ts::ETID::ETID ( TID  tid,
uint16_t  tid_ext 
)
inline

Constructor from a long table id and tid-ext.

Parameters
[in]tidTable id.
[in]tid_extTable id extension.

Member Function Documentation

◆ isLongSection()

bool ts::ETID::isLongSection ( ) const
inline

Check if the table is a long one.

Returns
True if the table is a long one.

◆ isShortSection()

bool ts::ETID::isShortSection ( ) const
inline

Check if the table is a short one.

Returns
True if the table is a short one.

◆ tid()

TID ts::ETID::tid ( ) const
inline

Get the table id.

Returns
The table id.

◆ tidExt()

uint16_t ts::ETID::tidExt ( ) const
inline

Get the table id extension.

Returns
The table id extension.

◆ operator==()

bool ts::ETID::operator== ( const ETID e) const
inline

Comparison operator.

Parameters
[in]eOther instance to compare.
Returns
True is this object == e.

◆ operator<()

bool ts::ETID::operator< ( const ETID e) const
inline

Comparison operator.

Parameters
[in]eOther instance to compare.
Returns
True is this object < e.

◆ operator<=()

bool ts::ETID::operator<= ( const ETID e) const
inline

Comparison operator.

Parameters
[in]eOther instance to compare.
Returns
True is this object <= e.

◆ operator>()

bool ts::ETID::operator> ( const ETID e) const
inline

Comparison operator.

Parameters
[in]eOther instance to compare.
Returns
True is this object > e.

◆ operator>=()

bool ts::ETID::operator>= ( const ETID e) const
inline

Comparison operator.

Parameters
[in]eOther instance to compare.
Returns
True is this object >= e.

The documentation for this class was generated from the following file: