TSDuck v3.40-3968
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, 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.
 

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,
const EDID edid,
const UString xmlName,
DisplayDescriptorFunction  displayFunction = nullptr,
const UString xmlNameLegacy = UString() 
)

Register a descriptor factory for a given descriptor tag.

Parameters
[in]factoryFunction which creates a descriptor of this type.
[in]edidExended descriptor id.
[in]xmlNameXML node name for this descriptor type.
[in]displayFunctionDisplay function for the corresponding descriptors. Can be null.
[in]xmlNameLegacyLegacy XML node name for this descriptor type (optional).
See also
TS_REGISTER_DESCRIPTOR

◆ RegisterDescriptor() [2/2]

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.

Parameters
[in]displayFunctionDisplay function for the corresponding descriptors.
[in]minCASFirst CA_system_id if the display function applies to one CAS only.
[in]maxCASLast 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: