TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::AsyncReportArgs Class Reference

#include <tsAsyncReportArgs.h>

Public Member Functions

 AsyncReportArgs ()=default
void defineArgs (Args &args)
bool loadArgs (Args &args)

Public Attributes

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

Static Public Attributes

static constexpr size_t MAX_LOG_MESSAGES = 512

Detailed Description

Parameters and command line arguments for asynchronous log.

Constructor & Destructor Documentation

◆ AsyncReportArgs()

ts::AsyncReportArgs::AsyncReportArgs ( )
default

Default constructor.

Member Function Documentation

◆ defineArgs()

void ts::AsyncReportArgs::defineArgs ( Args & args)

Add command line option definitions in an Args.

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

◆ loadArgs()

bool ts::AsyncReportArgs::loadArgs ( Args & args)

Load arguments from command line. Args error indicator is set in case of incorrect arguments.

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

Member Data Documentation

◆ MAX_LOG_MESSAGES

size_t ts::AsyncReportArgs::MAX_LOG_MESSAGES = 512
staticconstexpr

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: