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

The default section filter for TablesLogger. More...

#include <tsTablesLoggerFilter.h>

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

Public Member Functions

 TablesLoggerFilter ()=default
 Default constructor.
 
virtual void defineFilterOptions (Args &args) const override
 Define section filtering command line options in an Args.
 
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.
 
virtual bool loadFilterOptions (DuckContext &duck, Args &args, PIDSet &initial_pids) override
 Load arguments from command line.
 
virtual bool reset () override
 Reset context, if filtering restarts from the beginning for instance.
 

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.

◆ reset()

virtual bool ts::TablesLoggerFilter::reset ( )
overridevirtual

Reset context, if filtering restarts from the beginning for instance.

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: