This class logs sections and tables.
More...
#include <tsPSILogger.h>
This class logs sections and tables.
◆ PSILogger()
Constructor.
- Parameters
-
[in,out] | display | Object to display tables and sections. |
◆ defineArgs()
void ts::PSILogger::defineArgs |
( |
Args & |
args | ) |
|
Add command line option definitions in an Args.
- Parameters
-
[in,out] | args | Command line arguments to update. |
◆ loadArgs()
Load arguments from command line.
Args error indicator is set in case of incorrect arguments.
- Parameters
-
[in,out] | duck | TSDuck execution context. |
[in,out] | args | Command line arguments. |
- Returns
- True on success, false on error in argument line.
◆ setTableHandler()
Set a table handler which is called for each complete table in addition to logging.
When the table handler or the section handler is not null, there is no default logging. To have the tables or sections displayed, you must explicitly specify --text-output -.
- Parameters
-
[in] | h | The new table handler. |
◆ setSectionHandler()
Set a section handler which is called for each section in addition to logging.
When the table handler or the section handler is not null, there is no default logging. To have the tables or sections displayed, you must explicitly specify --text-output -.
- Parameters
-
◆ open()
bool ts::PSILogger::open |
( |
| ) |
|
Open files, start operations.
The options must have been loaded first.
- Returns
- True on success, false on error.
◆ feedPacket()
void ts::PSILogger::feedPacket |
( |
const TSPacket & |
pkt | ) |
|
The following method feeds the logger with a TS packet.
- Parameters
-
[in] | pkt | A new transport stream packet. |
◆ hasErrors()
bool ts::PSILogger::hasErrors |
( |
| ) |
const |
|
inline |
Check if an error was found.
- Returns
- True when an error was found.
◆ completed()
bool ts::PSILogger::completed |
( |
| ) |
const |
Return true when the analysis is complete.
- Returns
- True when the analysis is complete.
The documentation for this class was generated from the following file: