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

Parameters and command line arguments for asynchronous log. More...

Inheritance diagram for ts::AsyncReportArgs:
Collaboration diagram for ts::AsyncReportArgs:

Public Member Functions

 AsyncReportArgs ()
 Default constructor.
 
virtual void defineArgs (Args &args) override
 Add command line option definitions in an Args. More...
 
virtual bool loadArgs (DuckContext &duck, Args &args) override
 Load arguments from command line. More...
 

Public Attributes

size_t log_msg_count
 Maximum buffered log messages.
 
bool sync_log
 Synchronous log.
 
bool timed_log
 Add time stamps in log messages.
 

Static Public Attributes

static const size_t MAX_LOG_MESSAGES = 512
 Default maximum number of messages in the queue. More...
 

Detailed Description

Parameters and command line arguments for asynchronous log.

Member Function Documentation

◆ defineArgs()

virtual void ts::AsyncReportArgs::defineArgs ( Args args)
overridevirtual

Add command line option definitions in an Args.

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

Implements ts::ArgsSupplierInterface.

◆ loadArgs()

virtual bool ts::AsyncReportArgs::loadArgs ( DuckContext duck,
Args args 
)
overridevirtual

Load arguments from command line.

Args error indicator is set in case of incorrect arguments.

Parameters
[in,out]duckTSDuck execution context.
[in,out]argsCommand line arguments.
Returns
True on success, false on error in argument line.

Implements ts::ArgsSupplierInterface.

Member Data Documentation

◆ MAX_LOG_MESSAGES

const size_t ts::AsyncReportArgs::MAX_LOG_MESSAGES = 512
static

Default maximum number of messages in the queue.

Must be limited since the logging thread has a low priority. If a high priority thread loops on report, it would exhaust the memory.


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