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

Description of a service. More...

Inheritance diagram for ts::SDT::ServiceEntry:
Collaboration diagram for ts::SDT::ServiceEntry:

Public Member Functions

 ServiceEntry (const AbstractTable *table)
 Constructor. More...
 
bool locateServiceDescriptor (DuckContext &duck, ServiceDescriptor &desc) const
 Locate and deserialize the first DVB service_descriptor inside the entry. More...
 
UString providerName (DuckContext &duck) const
 Get the provider name. More...
 
UString serviceName (DuckContext &duck) const
 Get the service name. More...
 
uint8_t serviceType (DuckContext &duck) const
 Get the service type. More...
 
void setName (DuckContext &duck, const UString &name, uint8_t service_type=1)
 Set the service name. More...
 
void setProvider (DuckContext &duck, const UString &provider, uint8_t service_type=1)
 Set the provider name. More...
 
void setType (uint8_t service_type)
 Set the service type. More...
 
void updateService (DuckContext &duck, Service &service) const
 Collect all informations about the service. More...
 

Public Attributes

bool CA_controlled
 Controlled by a CA_system.
 
bool EITpf_present
 There are EIT present/following on current TS.
 
bool EITs_present
 There are EIT schedule on current TS.
 
uint8_t running_status
 Running status code.
 

Detailed Description

Description of a service.

Note: by inheriting from EntryWithDescriptors, there is a public field "DescriptorList descs".

Constructor & Destructor Documentation

◆ ServiceEntry()

ts::SDT::ServiceEntry::ServiceEntry ( const AbstractTable table)

Constructor.

Parameters
[in]tableParent SDT.

Member Function Documentation

◆ serviceType()

uint8_t ts::SDT::ServiceEntry::serviceType ( DuckContext duck) const

Get the service type.

Parameters
[in,out]duckTSDuck execution context.
Returns
The service type, as found from the first DVB "service descriptor", if there is one in the list. Return zero if there is no service descriptor.

◆ serviceName()

UString ts::SDT::ServiceEntry::serviceName ( DuckContext duck) const

Get the service name.

Parameters
[in,out]duckTSDuck execution context.
Returns
The service name, as found from the first DVB "service descriptor", if there is one in the list.

◆ providerName()

UString ts::SDT::ServiceEntry::providerName ( DuckContext duck) const

Get the provider name.

Parameters
[in,out]duckTSDuck execution context.
Returns
The provider name, as found from the first DVB "service descriptor", if there is one in the list.

◆ setName()

void ts::SDT::ServiceEntry::setName ( DuckContext duck,
const UString name,
uint8_t  service_type = 1 
)
inline

Set the service name.

Modify the first service_descriptor, if there is one, with the new service name. If there is no service_descriptor, a new one is added with the specified service type.

Parameters
[in,out]duckTSDuck execution context.
[in]nameNew service name.
[in]service_typeIf there is no service_descriptor, a new one is added with the specified service type. The default service_type is 1, ie. "digital television service". Ignored if a service_descriptor already exists.

◆ setProvider()

void ts::SDT::ServiceEntry::setProvider ( DuckContext duck,
const UString provider,
uint8_t  service_type = 1 
)
inline

Set the provider name.

Modify the first service_descriptor, if there is one, with the new provider name. If there is no service_descriptor, a new one is added with the specified service type.

Parameters
[in,out]duckTSDuck execution context.
[in]providerNew provider name.
[in]service_typeIf there is no service_descriptor, a new one is added with the specified service type. The default service_type is 1, ie. "digital television service". Ignored if a service_descriptor already exists.

◆ setType()

void ts::SDT::ServiceEntry::setType ( uint8_t  service_type)

Set the service type.

Modify the first service_descriptor, if there is one, with the new service type. If there is no service_descriptor, a new one is added with empty provider and service names.

Parameters
[in]service_typeNew service type.

◆ locateServiceDescriptor()

bool ts::SDT::ServiceEntry::locateServiceDescriptor ( DuckContext duck,
ServiceDescriptor desc 
) const

Locate and deserialize the first DVB service_descriptor inside the entry.

Parameters
[in,out]duckTSDuck execution context.
[out]descReturned content of the service descriptor.
Returns
True if found and valid, false otherwise.

◆ updateService()

void ts::SDT::ServiceEntry::updateService ( DuckContext duck,
Service service 
) const

Collect all informations about the service.

Parameters
[in,out]duckTSDuck execution context.
[in,out]serviceA service description to update.

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