TSDuck v3.40-4025
MPEG Transport Stream Toolkit
|
A base class to lookup the context of MPEG PSI/SI sections. More...
#include <tsSectionContext.h>
Public Member Functions | |
SectionContext (PID pid=PID_NULL, Standards standards=Standards::NONE, CASID casid=CASID_NULL) | |
Constructor. | |
virtual CASID | getCAS () const |
Get the Conditional Access System id in the context where the section is located. | |
virtual PID | getPID () const |
Get the PID where the section is located. | |
virtual Standards | getStandards () const |
Get the standards where the section is located. | |
A base class to lookup the context of MPEG PSI/SI sections.
The interface of the base class is used to understand the context of a section. When getting a binary section, for instance, it is not always easy to determine the true nature of the section, because the 8-bit table_id can be used by different types of sections. The SectionContext provides the PID, the standards, or CAS id which disambiguate the resolution.
This class can be derived to provide dynamic ways of locating the context.
|
inline |
Constructor.
[in] | pid | Optional PID. This value is returned by the default implementation of getPID(). |
[in] | standards | Optional set of standards. This value is returned by the default implementation of getStandards(). |
[in] | casid | Optional Conditional Access System id. This value is returned by the default implementation of getCAS(). |
|
virtual |
Get the PID where the section is located.
The default implementation returns the PID parameter which was given to the constructor.
|
virtual |
Get the standards where the section is located.
The default implementation returns the standards parameter which was given to the constructor.
|
virtual |
Get the Conditional Access System id in the context where the section is located.
The default implementation returns the CASID parameter which was given to the constructor.