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

A class to register fully implemented tables. More...

#include <tsPSIRepository.h>

Public Member Functions

 RegisterTable (const std::vector< TID > &tids, Standards standards, DisplaySectionFunction displayFunction=nullptr, LogSectionFunction logFunction=nullptr, std::initializer_list< PID > pids={}, uint16_t minCAS=CASID_NULL, uint16_t maxCAS=CASID_NULL)
 Register a known table with display functions but no full C++ class.
 
 RegisterTable (TableFactory factory, const std::vector< TID > &tids, Standards standards, const UString &xmlName, DisplaySectionFunction displayFunction=nullptr, LogSectionFunction logFunction=nullptr, std::initializer_list< PID > pids={}, uint16_t minCAS=CASID_NULL, uint16_t maxCAS=CASID_NULL)
 Register a fully implemented table.
 

Detailed Description

A class to register fully implemented tables.

The registration is performed using constructors. Thus, it is possible to perform a registration in the declaration of a static object.

Constructor & Destructor Documentation

◆ RegisterTable() [1/2]

ts::PSIRepository::RegisterTable::RegisterTable ( TableFactory  factory,
const std::vector< TID > &  tids,
Standards  standards,
const UString xmlName,
DisplaySectionFunction  displayFunction = nullptr,
LogSectionFunction  logFunction = nullptr,
std::initializer_list< PID pids = {},
uint16_t  minCAS = CASID_NULL,
uint16_t  maxCAS = CASID_NULL 
)

Register a fully implemented table.

Parameters
[in]factoryFunction which creates a table of this type.
[in]tidsList of table ids for this type. Usually there is only one (notable exception: EIT, SDT, NIT).
[in]standardsList of standards which define this table.
[in]xmlNameXML node name for this table type.
[in]displayFunctionDisplay function for the corresponding sections. Can be null.
[in]logFunctionLog function for the corresponding sections. Can be null.
[in]pidsList of PID's which are defined by the standards for this table.
[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 as minCAS when set as CASID_NULL.
See also
TS_REGISTER_TABLE

◆ RegisterTable() [2/2]

ts::PSIRepository::RegisterTable::RegisterTable ( const std::vector< TID > &  tids,
Standards  standards,
DisplaySectionFunction  displayFunction = nullptr,
LogSectionFunction  logFunction = nullptr,
std::initializer_list< PID pids = {},
uint16_t  minCAS = CASID_NULL,
uint16_t  maxCAS = CASID_NULL 
)

Register a known table with display functions but no full C++ class.

Parameters
[in]tidsList of table ids for this type. Usually there is only one (notable exception: EIT, SDT, NIT).
[in]standardsList of standards which define this table.
[in]displayFunctionDisplay function for the corresponding sections. Can be null.
[in]logFunctionLog function for the corresponding sections. Can be null.
[in]pidsList of PID's which are defined by the standards for this table.
[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 as minCAS when set as CASID_NULL.
See also
TS_REGISTER_SECTION

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