TSDuck v3.40-4033
MPEG Transport Stream Toolkit
|
A class to register fully implemented tables. More...
#include <tsPSIRepository.h>
Public Member Functions | |
RegisterTable (const std::vector< TID > &tids, Standards standards, DisplaySectionFunction display=nullptr, LogSectionFunction log=nullptr, std::initializer_list< PID > pids={}, CASID min_cas=CASID_NULL, CASID max_cas=CASID_NULL) | |
Register a known table with display functions but no full C++ class. | |
RegisterTable (TableFactory factory, std::type_index index, const std::vector< TID > &tids, Standards standards, const UString &xml_name, DisplaySectionFunction display=nullptr, LogSectionFunction log=nullptr, std::initializer_list< PID > pids={}, CASID min_cas=CASID_NULL, CASID max_cas=CASID_NULL) | |
Register a fully implemented table. | |
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.
ts::PSIRepository::RegisterTable::RegisterTable | ( | TableFactory | factory, |
std::type_index | index, | ||
const std::vector< TID > & | tids, | ||
Standards | standards, | ||
const UString & | xml_name, | ||
DisplaySectionFunction | display = nullptr , |
||
LogSectionFunction | log = nullptr , |
||
std::initializer_list< PID > | pids = {} , |
||
CASID | min_cas = CASID_NULL , |
||
CASID | max_cas = CASID_NULL |
||
) |
Register a fully implemented table.
[in] | factory | Function which creates a table object of this type. |
[in] | index | Type index of the table object class. |
[in] | tids | List of table ids for this type. Usually there is only one (notable exception: EIT, SDT, NIT). |
[in] | standards | List of standards which define this table. |
[in] | xml_name | XML node name for this table type. |
[in] | display | Display function for the corresponding sections. Can be null. |
[in] | log | Log function for the corresponding sections. Can be null. |
[in] | pids | List of PID's which are defined by the standards for this table. |
[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 as minCAS when set as CASID_NULL. |
ts::PSIRepository::RegisterTable::RegisterTable | ( | const std::vector< TID > & | tids, |
Standards | standards, | ||
DisplaySectionFunction | display = nullptr , |
||
LogSectionFunction | log = nullptr , |
||
std::initializer_list< PID > | pids = {} , |
||
CASID | min_cas = CASID_NULL , |
||
CASID | max_cas = CASID_NULL |
||
) |
Register a known table with display functions but no full C++ class.
[in] | tids | List of table ids for this type. Usually there is only one (notable exception: EIT, SDT, NIT). |
[in] | standards | List of standards which define this table. |
[in] | display | Display function for the corresponding sections. Can be null. |
[in] | log | Log function for the corresponding sections. Can be null. |
[in] | pids | List of PID's which are defined by the standards for this table. |
[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 as minCAS when set as CASID_NULL. |