TSDuck v3.40-4034
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::PSIRepository::RegisterDescriptor Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RegisterDescriptor() [1/2]

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.

Parameters
[in]factoryFunction which creates a descriptor object of this type.
[in]indexType index of the descriptor object class.
[in]edidExended descriptor id.
[in]xml_nameXML node name for this descriptor type.
[in]displayDisplay function for the corresponding descriptors. Can be null.
[in]legacy_xml_nameLegacy XML node name for this descriptor type (optional).
See also
TS_REGISTER_DESCRIPTOR

◆ RegisterDescriptor() [2/2]

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.

Parameters
[in]displayDisplay function for the corresponding descriptors.
[in]min_casFirst CA_system_id if the display function applies to one CAS only.
[in]max_casLast CA_system_id if the display function applies to one CAS only. Same minCAS when set as CASID_NULL.
See also
TS_REGISTER_CA_DESCRIPTOR

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