TSDuck v3.46-4965
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::ChannelFile::Network Class Reference

#include <tsChannelFile.h>

Public Member Functions

 Network (uint16_t net=0, TunerType typ=TT_UNDEFINED)
void clear ()
TransportStreamPtr tsById (uint16_t id) const
TransportStreamPtr tsByIndex (size_t index) const
size_t tsCount () const
TransportStreamPtr tsGetOrCreate (uint16_t id)

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 net = 0,
TunerType typ = TT_UNDEFINED )
inline

Default constructor.

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

Member Function Documentation

◆ clear()

void ts::ChannelFile::Network::clear ( )
inline

Clear all transport streams.

◆ 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: