TSDuck Version 3.16-1064 (TSDuck - The MPEG Transport Stream Toolkit)
ts::TSScanner Class Reference

A class which scans the services of a transport stream. More...

Inheritance diagram for ts::TSScanner:
Collaboration diagram for ts::TSScanner:

Public Member Functions

 TSScanner (Tuner &tuner, MilliSecond timeout=Infinite, bool pat_only=false, Report &report=(*ts::CerrReport::Instance()))
 Constructor. More...
 
void getNIT (ts::SafePtr< ts::NIT > &nit) const
 Get the NIT of the transport stream. More...
 
void getPAT (ts::SafePtr< ts::PAT > &pat) const
 Get the PAT of the transport stream. More...
 
void getSDT (ts::SafePtr< ts::SDT > &sdt) const
 Get the SDT of the transport stream. More...
 
bool getServices (ts::ServiceList &services) const
 Get the list of services. More...
 
void getTunerParameters (ts::TunerParametersPtr &tp) const
 Get the tuner parameters of the transport stream. More...
 

Detailed Description

A class which scans the services of a transport stream.

Constructor & Destructor Documentation

◆ TSScanner()

ts::TSScanner::TSScanner ( Tuner tuner,
MilliSecond  timeout = Infinite,
bool  pat_only = false,
Report report = (*ts::CerrReport::Instance()) 
)

Constructor.

The transport stream is scanned be the constructor. The collected data cna be fetched later.

Parameters
[in,out]tunerA tuner which is already tuned to the expected channel.
[in]timeoutExecution timeout in milliseconds.
[in]pat_onlyIf true, only collect the PAT, do not wait for more information.
[in,out]reportWhere to report errors.

Member Function Documentation

◆ getServices()

bool ts::TSScanner::getServices ( ts::ServiceList services) const

Get the list of services.

Parameters
[out]servicesReturned list of services.
Returns
True on success, false on error.

◆ getTunerParameters()

void ts::TSScanner::getTunerParameters ( ts::TunerParametersPtr tp) const
inline

Get the tuner parameters of the transport stream.

Parameters
[out]tpReturned safe pointer to the tuner parameters.

◆ getPAT()

void ts::TSScanner::getPAT ( ts::SafePtr< ts::PAT > &  pat) const
inline

Get the PAT of the transport stream.

Parameters
[out]patReturned safe pointer to the PAT.

◆ getSDT()

void ts::TSScanner::getSDT ( ts::SafePtr< ts::SDT > &  sdt) const
inline

Get the SDT of the transport stream.

Parameters
[out]sdtReturned safe pointer to the SDT.

◆ getNIT()

void ts::TSScanner::getNIT ( ts::SafePtr< ts::NIT > &  nit) const
inline

Get the NIT of the transport stream.

Parameters
[out]nitReturned safe pointer to the NIT.

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