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

Description of one network. More...

#include <tsChannelFile.h>

Public Member Functions

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

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

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