TSDuck v3.40-4034
MPEG Transport Stream Toolkit
|
A class to register fully implemented descriptors. More...
#include <tsPSIRepository.h>
Public Member Functions | |
RegisterDescriptor (DescriptorFactory factory, std::type_index index, const EDID &edid, const UString &xml_name, DisplayDescriptorFunction display=nullptr, const UString &legacy_xml_name=UString()) | |
Register a descriptor factory for a given descriptor tag. | |
RegisterDescriptor (DisplayCADescriptorFunction display, CASID min_cas, CASID max_cas=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, |
std::type_index | index, | ||
const EDID & | edid, | ||
const UString & | xml_name, | ||
DisplayDescriptorFunction | display = nullptr , |
||
const UString & | legacy_xml_name = UString() |
||
) |
Register a descriptor factory for a given descriptor tag.
[in] | factory | Function which creates a descriptor object of this type. |
[in] | index | Type index of the descriptor object class. |
[in] | edid | Exended descriptor id. |
[in] | xml_name | XML node name for this descriptor type. |
[in] | display | Display function for the corresponding descriptors. Can be null. |
[in] | legacy_xml_name | Legacy XML node name for this descriptor type (optional). |
ts::PSIRepository::RegisterDescriptor::RegisterDescriptor | ( | DisplayCADescriptorFunction | display, |
CASID | min_cas, | ||
CASID | max_cas = CASID_NULL |
||
) |
Registers a CA_descriptor display function for a given range of CA_system_id.
[in] | display | Display function for the corresponding descriptors. |
[in] | min_cas | First CA_system_id if the display function applies to one CAS only. |
[in] | max_cas | Last CA_system_id if the display function applies to one CAS only. Same minCAS when set as CASID_NULL. |