![]() |
TSDuck v3.46-4965
MPEG Transport Stream Toolkit
|
#include <tsPSILogger.h>


Public Member Functions | |
| PSILogger (TablesDisplay &display) | |
| virtual | ~PSILogger () override |
| void | close () |
| bool | completed () const |
| void | defineArgs (Args &args) |
| void | feedPacket (const TSPacket &pkt) |
| bool | hasErrors () const |
| bool | loadArgs (DuckContext &duck, Args &args) |
| bool | open () |
| void | reportDemuxErrors () |
| void | setSectionHandler (SectionHandlerInterface *h) |
| void | setTableHandler (TableHandlerInterface *h) |
This class logs sections and tables.
|
explicit |
Constructor.
| [in,out] | display | Object to display tables and sections. |
|
overridevirtual |
Destructor.
| void ts::PSILogger::defineArgs | ( | Args & | args | ) |
Add command line option definitions in an Args.
| [in,out] | args | Command line arguments to update. |
| bool ts::PSILogger::loadArgs | ( | DuckContext & | duck, |
| Args & | args ) |
Load arguments from command line. Args error indicator is set in case of incorrect arguments.
| [in,out] | duck | TSDuck execution context. |
| [in,out] | args | Command line arguments. |
|
inline |
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 -.
| [in] | h | The new table handler. |
|
inline |
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 -.
| [in] | h | The new handler. |
| bool ts::PSILogger::open | ( | ) |
Open files, start operations. The options must have been loaded first.
| void ts::PSILogger::close | ( | ) |
Close all operations.
| void ts::PSILogger::feedPacket | ( | const TSPacket & | pkt | ) |
The following method feeds the logger with a TS packet.
| [in] | pkt | A new transport stream packet. |
|
inline |
Check if an error was found.
| bool ts::PSILogger::completed | ( | ) | const |
Return true when the analysis is complete.
| void ts::PSILogger::reportDemuxErrors | ( | ) |
Report the demux errors (if any).