TSDuck v3.40-3968
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::TransportStreamId Class Reference

Full identification of a DVB transport stream. More...

#include <tsTransportStreamId.h>

Inheritance diagram for ts::TransportStreamId:
Collaboration diagram for ts::TransportStreamId:

Public Member Functions

 TransportStreamId ()=default
 Default constructor.
 
 TransportStreamId (uint16_t tsid, uint16_t onid)
 Constructor.
 
virtual void clear ()
 Clear the content of this object.
 
uint32_t normalized () const
 Get a "normalized" 32-bit identifier.
 
bool operator< (const TransportStreamId &tsid) const
 Comparison operator.
 
bool operator<= (const TransportStreamId &tsid) const
 Comparison operator.
 
bool operator== (const TransportStreamId &tsid) const
 Comparison operator.
 
bool operator> (const TransportStreamId &tsid) const
 Comparison operator.
 
bool operator>= (const TransportStreamId &tsid) const
 Comparison operator.
 
virtual UString toString () const override
 Convert to a string object.
 

Public Attributes

uint16_t original_network_id = 0
 Original network id.
 
uint16_t transport_stream_id = 0
 Transport stream id.
 

Detailed Description

Full identification of a DVB transport stream.

Constructor & Destructor Documentation

◆ TransportStreamId()

ts::TransportStreamId::TransportStreamId ( uint16_t  tsid,
uint16_t  onid 
)

Constructor.

Parameters
[in]tsidTransport stream id.
[in]onidOriginal network id.

Member Function Documentation

◆ clear()

virtual void ts::TransportStreamId::clear ( )
virtual

Clear the content of this object.

Reimplemented in ts::ServiceIdTriplet.

◆ normalized()

uint32_t ts::TransportStreamId::normalized ( ) const
inline

Get a "normalized" 32-bit identifier.

The upper 16-bit contain the original network id. The lower 16-bit contain the TS id.

Returns
The "normalized" 32-bit identifier of the TS.

◆ operator==()

bool ts::TransportStreamId::operator== ( const TransportStreamId tsid) const
inline

Comparison operator.

Parameters
[in]tsidAnother instance to compare.
Returns
True if this object == tsid.

◆ operator<()

bool ts::TransportStreamId::operator< ( const TransportStreamId tsid) const
inline

Comparison operator.

Parameters
[in]tsidAnother instance to compare.
Returns
True if this object < tsid.

◆ operator<=()

bool ts::TransportStreamId::operator<= ( const TransportStreamId tsid) const
inline

Comparison operator.

Parameters
[in]tsidAnother instance to compare.
Returns
True if this object <= tsid.

◆ operator>()

bool ts::TransportStreamId::operator> ( const TransportStreamId tsid) const
inline

Comparison operator.

Parameters
[in]tsidAnother instance to compare.
Returns
True if this object > tsid.

◆ operator>=()

bool ts::TransportStreamId::operator>= ( const TransportStreamId tsid) const
inline

Comparison operator.

Parameters
[in]tsidAnother instance to compare.
Returns
True if this object >= tsid.

◆ toString()

virtual UString ts::TransportStreamId::toString ( ) const
overridevirtual

Convert to a string object.

Returns
This object, converted as a string.

Implements ts::StringifyInterface.

Reimplemented in ts::ServiceIdTriplet.


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