TSDuck v3.40-3963
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::TSDumpArgs Class Reference

Command line arguments for transport stream packets dump. More...

#include <tsTSDumpArgs.h>

Public Member Functions

 TSDumpArgs ()=default
 Default constructor.
 
void defineArgs (Args &args)
 Add command line option definitions in an Args.
 
void dump (DuckContext &duck, std::ostream &strm, const TSPacket &pkt, const TSPacketMetadata *mdata=nullptr) const
 This method displays the content of a transport packet according to the command line options.
 
bool loadArgs (DuckContext &duck, Args &args)
 Load arguments from command line.
 

Public Attributes

uint32_t dump_flags = 0
 Dump options for Hexa and Packet::dump.
 
bool log = false
 Option --log.
 
size_t log_size = 0
 Size to display with --log.
 
PIDSet pids {}
 PID values to dump.
 
bool rs204 = false
 Option --rs204.
 

Detailed Description

Command line arguments for transport stream packets dump.

Member Function Documentation

◆ defineArgs()

void ts::TSDumpArgs::defineArgs ( Args args)

Add command line option definitions in an Args.

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

◆ loadArgs()

bool ts::TSDumpArgs::loadArgs ( DuckContext duck,
Args args 
)

Load arguments from command line.

Args error indicator is set in case of incorrect arguments.

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

◆ dump()

void ts::TSDumpArgs::dump ( DuckContext duck,
std::ostream &  strm,
const TSPacket pkt,
const TSPacketMetadata mdata = nullptr 
) const

This method displays the content of a transport packet according to the command line options.

Parameters
[in,out]duckTSDuck execution context.
[in,out]strmA standard stream in output mode (text mode).
[in]pktTS packet to dump.
[in]mdataOptional metadata.

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