![]() |
TSDuck v3.46-4965
MPEG Transport Stream Toolkit
|
#include <tsChannelFile.h>

Public Member Functions | |
| TransportStream (uint16_t ts=0, uint16_t on=0) | |
| bool | addService (const ServicePtr &srv, ShareMode copy=ShareMode::SHARE, bool replace=true) |
| void | addServices (const ServiceList &list) |
| void | clear () |
| ServicePtr | serviceById (uint16_t id) const |
| ServicePtr | serviceByIndex (size_t index) const |
| ServicePtr | serviceByName (const UString &name, bool strict=true) const |
| size_t | serviceCount () const |
| ServicePtr | serviceGetOrCreate (uint16_t id) |
Public Attributes | |
| uint16_t | id = 0 |
| Transport Stream Id. | |
| uint16_t | onid = 0 |
| Original Network Id. | |
| ModulationArgs | tune {} |
| Tuner parameters for the transport stream. | |
Description of one transport stream.
|
inline |
Default constructor.
| [in] | ts | Transport Stream Id. |
| [in] | on | Original Network Id. |
|
inline |
Clear all services.
|
inline |
Get the number of services in the transport stream.
| ServicePtr ts::ChannelFile::TransportStream::serviceByIndex | ( | size_t | index | ) | const |
Get a service by index in the transport stream.
| [in] | index | Service index, from 0 to serviceCount()-1. |
| ServicePtr ts::ChannelFile::TransportStream::serviceById | ( | uint16_t | id | ) | const |
Get a service by id in the transport stream.
| [in] | id | Service identifier. |
| ServicePtr ts::ChannelFile::TransportStream::serviceByName | ( | const UString & | name, |
| bool | strict = true ) const |
Get a service by name in the transport stream.
| [in] | name | Service name. |
| [in] | strict | If true, search exactly name. If false, the comparison is case-insensitive and spaces are ignored. If false, name can also be "major.minor" for ATSC services. |
| ServicePtr ts::ChannelFile::TransportStream::serviceGetOrCreate | ( | uint16_t | id | ) |
Get or create a service by id in the transport stream.
| [in] | id | Service identifier. |
| bool ts::ChannelFile::TransportStream::addService | ( | const ServicePtr & | srv, |
| ShareMode | copy = ShareMode::SHARE, | ||
| bool | replace = true ) |
Add a service in the transport stream.
| [in] | srv | Safe pointer to the new service. |
| [in] | copy | When COPY, duplicate the service object. When SHARE, simply copy the pointer to the same object. |
| [in] | replace | If true, replace a service with same id if it already exists. |
| void ts::ChannelFile::TransportStream::addServices | ( | const ServiceList & | list | ) |
Add a list of services in the transport stream. Existing services are updated with new info.
| [in] | list | List of services. |