TSDuck v3.43-4441
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::CerrReport::ReportConstructor Class Reference

A class with constructors which log messages. More...

#include <tsCerrReport.h>

Public Member Functions

template<class... Args>
 ReportConstructor (const UChar *fmt, Args &&... args)
 Report a debug message with a printf-like interface.
 
template<class... Args>
 ReportConstructor (int severity, const UChar *fmt, Args &&... args)
 Report a message with an explicit severity and a printf-like interface.
 

Detailed Description

A class with constructors which log messages.

Useful to log debug message on standard error during initialization.

See also
TS_CERR_DEBUG_LEVEL
TS_CERR_DEBUG

Constructor & Destructor Documentation

◆ ReportConstructor() [1/2]

template<class... Args>
ts::CerrReport::ReportConstructor::ReportConstructor ( const UChar fmt,
Args &&...  args 
)
inline

Report a debug message with a printf-like interface.

Parameters
[in]fmtFormat string with embedded '%' sequences.
[in]argsList of arguments to substitute in the format string.
See also
UString::format()

◆ ReportConstructor() [2/2]

template<class... Args>
ts::CerrReport::ReportConstructor::ReportConstructor ( int  severity,
const UChar fmt,
Args &&...  args 
)
inline

Report a message with an explicit severity and a printf-like interface.

Parameters
[in]severityMessage severity.
[in]fmtFormat string with embedded '%' sequences.
[in]argsList of arguments to substitute in the format string.
See also
UString::format()

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