TSDuck Version 3.32-2769 (TSDuck - The MPEG Transport Stream Toolkit)
ts::TablesLoggerFilter Class Reference

The default section filter for TablesLogger. More...

Inheritance diagram for ts::TablesLoggerFilter:
Collaboration diagram for ts::TablesLoggerFilter:

Public Member Functions

 TablesLoggerFilter ()
 Default constructor.
 
virtual void defineFilterOptions (Args &args) const override
 Define section filtering command line options in an Args. More...
 
virtual bool filterSection (DuckContext &duck, const Section &section, uint16_t cas, PIDSet &more_pids) override
 Check if a specific section must be filtered and displayed. More...
 
virtual bool loadFilterOptions (DuckContext &duck, Args &args, PIDSet &initial_pids) override
 Load arguments from command line. More...
 

Detailed Description

The default section filter for TablesLogger.

Member Function Documentation

◆ defineFilterOptions()

virtual void ts::TablesLoggerFilter::defineFilterOptions ( Args args) const
overridevirtual

Define section filtering command line options in an Args.

Parameters
[in,out]argsCommand line arguments to update.

Implements ts::TablesLoggerFilterInterface.

◆ loadFilterOptions()

virtual bool ts::TablesLoggerFilter::loadFilterOptions ( DuckContext duck,
Args args,
PIDSet initial_pids 
)
overridevirtual

Load arguments from command line.

Args error indicator is set in case of incorrect arguments.

Parameters
[in,out]duckTSDuck context.
[in,out]argsCommand line arguments.
[out]initial_pidsInitial PID's that the filter would like to see.
Returns
True on success, false on error in argument line.

Implements ts::TablesLoggerFilterInterface.

◆ filterSection()

virtual bool ts::TablesLoggerFilter::filterSection ( DuckContext duck,
const Section section,
uint16_t  cas,
PIDSet more_pids 
)
overridevirtual

Check if a specific section must be filtered and displayed.

Parameters
[in,out]duckTSDuck context.
[in]sectionThe section to check.
[in]casThe CAS id for this section.
[out]more_pidsAdditional PID's that the filter would like to see.
Returns
True if the section can be displayed, false if it must not be displayed. A section is actually displayed if all section filters returned true.

Implements ts::TablesLoggerFilterInterface.


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