TSDuck v3.40-3968
MPEG Transport Stream Toolkit
|
A class to register fully implemented descriptors. More...
#include <tsPSIRepository.h>
Public Member Functions | |
RegisterDescriptor (DescriptorFactory factory, const EDID &edid, const UString &xmlName, DisplayDescriptorFunction displayFunction=nullptr, const UString &xmlNameLegacy=UString()) | |
Register a descriptor factory for a given descriptor tag. | |
RegisterDescriptor (DisplayCADescriptorFunction displayFunction, uint16_t minCAS, uint16_t maxCAS=CASID_NULL) | |
Registers a CA_descriptor display function for a given range of CA_system_id. | |
A class to register fully implemented descriptors.
The registration is performed using constructors. Thus, it is possible to perform a registration in the declaration of a static object.
ts::PSIRepository::RegisterDescriptor::RegisterDescriptor | ( | DescriptorFactory | factory, |
const EDID & | edid, | ||
const UString & | xmlName, | ||
DisplayDescriptorFunction | displayFunction = nullptr , |
||
const UString & | xmlNameLegacy = UString() |
||
) |
Register a descriptor factory for a given descriptor tag.
[in] | factory | Function which creates a descriptor of this type. |
[in] | edid | Exended descriptor id. |
[in] | xmlName | XML node name for this descriptor type. |
[in] | displayFunction | Display function for the corresponding descriptors. Can be null. |
[in] | xmlNameLegacy | Legacy XML node name for this descriptor type (optional). |
ts::PSIRepository::RegisterDescriptor::RegisterDescriptor | ( | DisplayCADescriptorFunction | displayFunction, |
uint16_t | minCAS, | ||
uint16_t | maxCAS = CASID_NULL |
||
) |
Registers a CA_descriptor display function for a given range of CA_system_id.
[in] | displayFunction | Display function for the corresponding descriptors. |
[in] | minCAS | First CA_system_id if the display function applies to one CAS only. |
[in] | maxCAS | Last CA_system_id if the display function applies to one CAS only. Same minCAS when set as CASID_NULL. |