TSDuck Version 3.32-2769 (TSDuck - The MPEG Transport Stream Toolkit)
ts::ChannelFile::Network Class Reference

Description of one network. More...

Public Member Functions

 Network (uint16_t id=0, TunerType typ=TT_UNDEFINED)
 Default constructor. More...
 
void clear ()
 Clear all transport streams.
 
TransportStreamPtr tsById (uint16_t id) const
 Get a transport stream by id in the network. More...
 
TransportStreamPtr tsByIndex (size_t index) const
 Get a transport stream by index in the network. More...
 
size_t tsCount () const
 Get the number of transport streams in the network. More...
 
TransportStreamPtr tsGetOrCreate (uint16_t id)
 Get or create a transport stream by id in the network. More...
 

Public Attributes

uint16_t id
 Network Id.
 
TunerType type
 Tuner type (a subset of delivery system).
 

Detailed Description

Description of one network.

Constructor & Destructor Documentation

◆ Network()

ts::ChannelFile::Network::Network ( uint16_t  id = 0,
TunerType  typ = TT_UNDEFINED 
)

Default constructor.

Parameters
[in]idNetwork Id.
[in]typTuner type.

Member Function Documentation

◆ tsCount()

size_t ts::ChannelFile::Network::tsCount ( ) const
inline

Get the number of transport streams in the network.

Returns
The number of transport streams in the network.

◆ tsByIndex()

TransportStreamPtr ts::ChannelFile::Network::tsByIndex ( size_t  index) const

Get a transport stream by index in the network.

Parameters
[in]indexTS index, from 0 to tsCount()-1.
Returns
A safe pointer to the TS or a null pointer if the specified TS does not exist.

◆ tsById()

TransportStreamPtr ts::ChannelFile::Network::tsById ( uint16_t  id) const

Get a transport stream by id in the network.

Parameters
[in]idTS identifier.
Returns
A safe pointer to the TS or a null pointer if the specified TS does not exist.

◆ tsGetOrCreate()

TransportStreamPtr ts::ChannelFile::Network::tsGetOrCreate ( uint16_t  id)

Get or create a transport stream by id in the network.

Parameters
[in]idTS identifier.
Returns
A safe pointer to the TS, never a null pointer.

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