TSDuck Version 3.18-1208 (TSDuck - The MPEG Transport Stream Toolkit)
ts::Severity Struct Reference

Message severity. More...

Collaboration diagram for ts::Severity:

Static Public Member Functions

static UString Header (int severity)
 Formatted line prefix header for a severity. More...

Static Public Attributes

static const int Debug = 1
 First debug level.
static const Enumeration Enums
 An enumeration to use severity values on the command line for instance.
static const int Error = -3
 Regular error.
static const int Fatal = -5
 Fatal error, typically aborts the application.
static const int Info = -1
 Information message.
static const int Severe = -4
 Severe errror.
static const int Verbose = 0
 Verbose information.
static const int Warning = -2
 Warning message.

Detailed Description

Message severity.

Positive values are debug levels. The typical default reporting level is Info. All messages with a higher level (Verbose and all debug levels) are not reported by default. The struct is here just to add a naming level

Member Function Documentation

◆ Header()

static UString ts::Severity::Header ( int  severity)

Formatted line prefix header for a severity.

[in]severitySeverity value.
A string to prepend to messages. Empty for Info and Verbose levels.

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