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

Full identification of a DVB service (aka "DVB triplet"). More...

#include <tsServiceIdTriplet.h>

Inheritance diagram for ts::ServiceIdTriplet:
Collaboration diagram for ts::ServiceIdTriplet:

Public Member Functions

 ServiceIdTriplet ()=default
 Default constructor.
 
 ServiceIdTriplet (uint16_t svid, const TransportStreamId &tsid, uint8_t vers=0)
 Constructor.
 
 ServiceIdTriplet (uint16_t svid, uint16_t tsid, uint16_t onid, uint8_t vers=0)
 Constructor.
 
virtual void clear () override
 Clear the content of this object.
 
uint64_t normalized () const
 Get a "normalized" 64-bit identifier.
 
bool operator< (const ServiceIdTriplet &svid) const
 Comparison operator.
 
bool operator< (const TransportStreamId &tsid) const
 Comparison operator.
 
bool operator<= (const ServiceIdTriplet &svid) const
 Comparison operator.
 
bool operator<= (const TransportStreamId &tsid) const
 Comparison operator.
 
bool operator== (const ServiceIdTriplet &svid) const
 Comparison operator.
 
bool operator== (const TransportStreamId &tsid) const
 Comparison operator.
 
bool operator> (const ServiceIdTriplet &svid) const
 Comparison operator.
 
bool operator> (const TransportStreamId &tsid) const
 Comparison operator.
 
bool operator>= (const ServiceIdTriplet &svid) 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 service_id = 0
 Service id.
 
uint16_t transport_stream_id = 0
 Transport stream id.
 
uint8_t version = 0
 General-purpose version (typically a table version), not part of the DVB triplet.
 

Detailed Description

Full identification of a DVB service (aka "DVB triplet").

Constructor & Destructor Documentation

◆ ServiceIdTriplet() [1/2]

ts::ServiceIdTriplet::ServiceIdTriplet ( uint16_t  svid,
uint16_t  tsid,
uint16_t  onid,
uint8_t  vers = 0 
)
inline

Constructor.

Parameters
[in]svidService id.
[in]tsidTransport stream id.
[in]onidOriginal network id.
[in]versOptional version.

◆ ServiceIdTriplet() [2/2]

ts::ServiceIdTriplet::ServiceIdTriplet ( uint16_t  svid,
const TransportStreamId tsid,
uint8_t  vers = 0 
)
inline

Constructor.

Parameters
[in]svidService id.
[in]tsidFull transport stream id.
[in]versOptional version.

Member Function Documentation

◆ normalized()

uint64_t ts::ServiceIdTriplet::normalized ( ) const
inline

Get a "normalized" 64-bit identifier.

This is a value containing the original network id, TS id, service id and version.

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

◆ operator==() [1/2]

bool ts::ServiceIdTriplet::operator== ( const ServiceIdTriplet svid) const
inline

Comparison operator.

Parameters
[in]svidAnother instance to compare.
Returns
True if this object == svid.

◆ operator<() [1/2]

bool ts::ServiceIdTriplet::operator< ( const ServiceIdTriplet svid) const
inline

Comparison operator.

Parameters
[in]svidAnother instance to compare.
Returns
True if this object < svid.

◆ operator<=() [1/2]

bool ts::ServiceIdTriplet::operator<= ( const ServiceIdTriplet svid) const
inline

Comparison operator.

Parameters
[in]svidAnother instance to compare.
Returns
True if this object <= svid.

◆ operator>() [1/2]

bool ts::ServiceIdTriplet::operator> ( const ServiceIdTriplet svid) const
inline

Comparison operator.

Parameters
[in]svidAnother instance to compare.
Returns
True if this object > svid.

◆ operator>=() [1/2]

bool ts::ServiceIdTriplet::operator>= ( const ServiceIdTriplet svid) const
inline

Comparison operator.

Parameters
[in]svidAnother instance to compare.
Returns
True if this object >= svid.

◆ clear()

virtual void ts::ServiceIdTriplet::clear ( )
overridevirtual

Clear the content of this object.

Reimplemented from ts::TransportStreamId.

◆ toString()

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

Convert to a string object.

Returns
This object, converted as a string.

Reimplemented from ts::TransportStreamId.

◆ operator==() [2/2]

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

Comparison operator.

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

◆ operator<() [2/2]

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

Comparison operator.

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

◆ operator<=() [2/2]

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

Comparison operator.

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

◆ operator>() [2/2]

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

Comparison operator.

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

◆ operator>=() [2/2]

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

Comparison operator.

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

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