TSDuck v3.40-4025
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::SectionContext Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SectionContext()

ts::SectionContext::SectionContext ( PID  pid = PID_NULL,
Standards  standards = Standards::NONE,
CASID  casid = CASID_NULL 
)
inline

Constructor.

Parameters
[in]pidOptional PID. This value is returned by the default implementation of getPID().
[in]standardsOptional set of standards. This value is returned by the default implementation of getStandards().
[in]casidOptional Conditional Access System id. This value is returned by the default implementation of getCAS().

Member Function Documentation

◆ getPID()

virtual PID ts::SectionContext::getPID ( ) const
virtual

Get the PID where the section is located.

The default implementation returns the PID parameter which was given to the constructor.

Returns
The PID of the section or PID_NULL if unknown.

◆ getStandards()

virtual Standards ts::SectionContext::getStandards ( ) const
virtual

Get the standards where the section is located.

The default implementation returns the standards parameter which was given to the constructor.

Returns
The standards where the section is located.

◆ getCAS()

virtual CASID ts::SectionContext::getCAS ( ) const
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.

Returns
The contextual CAS id or CASID_NULL if unknown.

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