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

Vector of audio language options. More...

#include <tsAudioLanguageOptions.h>

Inheritance diagram for ts::AudioLanguageOptionsVector:
Collaboration diagram for ts::AudioLanguageOptionsVector:

Public Types

using SuperClass = std::vector< AudioLanguageOptions >
 Explicit naming of superclass.
 

Public Member Functions

 AudioLanguageOptionsVector (Args &args, const UChar *option_name)
 Constructor from a list of command-line options.
 
 AudioLanguageOptionsVector (size_type size=0)
 Default constructor.
 
bool apply (DuckContext &duck, PMT &pmt, int severity=Severity::Error) const
 Apply requested transformations on a PMT.
 
bool getFromArgs (Args &args, const UChar *option_name)
 Assign from a list of command-line options.
 

Detailed Description

Vector of audio language options.

Constructor & Destructor Documentation

◆ AudioLanguageOptionsVector() [1/2]

ts::AudioLanguageOptionsVector::AudioLanguageOptionsVector ( size_type  size = 0)
inlineexplicit

Default constructor.

Parameters
[in]sizeInitial number of elements in the list. Default: empty.

◆ AudioLanguageOptionsVector() [2/2]

ts::AudioLanguageOptionsVector::AudioLanguageOptionsVector ( Args args,
const UChar option_name 
)
inline

Constructor from a list of command-line options.

Parameters
[in,out]argsCommand line arguments. Errors are also reported through the args object.
[in]option_nameThe full name of the option. If the parameter is a null pointer or an empty string, this specifies a parameter, not an option. If the specified option was not declared in the syntax of the command or declared as a non-string type, a fatal error is reported. This object is populated with one element per occurrence of the option.

Member Function Documentation

◆ getFromArgs()

bool ts::AudioLanguageOptionsVector::getFromArgs ( Args args,
const UChar option_name 
)

Assign from a list of command-line options.

Parameters
[in,out]argsCommand line arguments. Errors are also reported through the args object.
[in]option_nameThe full name of the option. If the parameter is a null pointer or an empty string, this specifies a parameter, not an option. If the specified option was not declared in the syntax of the command or declared as a non-string type, a fatal error is reported. This object is populated with one element per occurrence of the option.
Returns
True on success, false on error.

◆ apply()

bool ts::AudioLanguageOptionsVector::apply ( DuckContext duck,
PMT pmt,
int  severity = Severity::Error 
) const

Apply requested transformations on a PMT.

Parameters
[in,out]duckTSDuck execution environment.
[in,out]pmtThe PMT to update. All audio streams are modified according to the content of this vector of audio options.
[in]severitySeverity of errors (ts::Severity::Error by default).
Returns
True on success, false on error.

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