TSDuck v3.40-4033
MPEG Transport Stream Toolkit
|
Description of a service. More...
#include <tsSDT.h>
Public Member Functions | |
ServiceEntry (const AbstractTable *table) | |
Constructor. | |
bool | locateServiceDescriptor (DuckContext &duck, ServiceDescriptor &desc) const |
Locate and deserialize the first DVB service_descriptor inside the entry. | |
UString | providerName (DuckContext &duck) const |
Get the provider name. | |
UString | serviceName (DuckContext &duck) const |
Get the service name. | |
uint8_t | serviceType (DuckContext &duck) const |
Get the service type. | |
void | setName (DuckContext &duck, const UString &name, uint8_t service_type=1) |
Set the service name. | |
void | setProvider (DuckContext &duck, const UString &provider, uint8_t service_type=1) |
Set the provider name. | |
void | setType (uint8_t service_type) |
Set the service type. | |
void | updateService (DuckContext &duck, Service &service) const |
Collect all informations about the service. | |
Public Attributes | |
bool | CA_controlled = false |
Controlled by a CA_system. | |
DescriptorList | descs |
List of descriptors for this entry, publicly accessible. | |
bool | EITpf_present = false |
There are EIT present/following on current TS. | |
bool | EITs_present = false |
There are EIT schedule on current TS. | |
size_t | order_hint |
Preferred insertion index when serializing the table or NPOS if unspecified. | |
uint8_t | running_status = 0 |
Running status code. | |
Description of a service.
Note: by inheriting from EntryWithDescriptors, there is a public field "DescriptorList descs".
ts::SDT::ServiceEntry::ServiceEntry | ( | const AbstractTable * | table | ) |
Constructor.
[in] | table | Parent SDT. |
uint8_t ts::SDT::ServiceEntry::serviceType | ( | DuckContext & | duck | ) | const |
Get the service type.
[in,out] | duck | TSDuck execution context. |
UString ts::SDT::ServiceEntry::serviceName | ( | DuckContext & | duck | ) | const |
Get the service name.
[in,out] | duck | TSDuck execution context. |
UString ts::SDT::ServiceEntry::providerName | ( | DuckContext & | duck | ) | const |
Get the provider name.
[in,out] | duck | TSDuck execution context. |
|
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.
[in,out] | duck | TSDuck execution context. |
[in] | name | New service name. |
[in] | service_type | If 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. |
|
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.
[in,out] | duck | TSDuck execution context. |
[in] | provider | New provider name. |
[in] | service_type | If 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. |
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.
[in] | service_type | New service type. |
bool ts::SDT::ServiceEntry::locateServiceDescriptor | ( | DuckContext & | duck, |
ServiceDescriptor & | desc | ||
) | const |
Locate and deserialize the first DVB service_descriptor inside the entry.
[in,out] | duck | TSDuck execution context. |
[out] | desc | Returned content of the service descriptor. |
void ts::SDT::ServiceEntry::updateService | ( | DuckContext & | duck, |
Service & | service | ||
) | const |
Collect all informations about the service.
[in,out] | duck | TSDuck execution context. |
[in,out] | service | A service description to update. |
|
inherited |
Preferred insertion index when serializing the table or NPOS if unspecified.
This is an informational hint which can be used or ignored.