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

Description of one Teletext frame. More...

#include <tsTeletextFrame.h>

Public Member Functions

 TeletextFrame ()=default
 Default constructor.
 
template<class Rep1 , class Period1 , class Rep2 , class Period2 >
 TeletextFrame (PID pid, int page, int frameCount, const cn::duration< Rep1, Period1 > &showTimestamp, const cn::duration< Rep2, Period2 > &hideTimestamp, const UStringList &lines=UStringList())
 Full constructor.
 
void addLine (const UString &line)
 Add a line of text to the frame.
 
int frameCount () const
 Get the frame number in this page, starting at 1.
 
cn::milliseconds hideTimestamp () const
 Get the "hide" timestamp in ms from start of stream.
 
const UStringListlines () const
 Get the text lines.
 
int page () const
 Get the Teletext page number.
 
PID pid () const
 Get the PID from which the frame originates.
 
cn::milliseconds showTimestamp () const
 Get the "show" timestamp in ms from start of stream.
 

Detailed Description

Description of one Teletext frame.

Constructor & Destructor Documentation

◆ TeletextFrame()

template<class Rep1 , class Period1 , class Rep2 , class Period2 >
ts::TeletextFrame::TeletextFrame ( PID  pid,
int  page,
int  frameCount,
const cn::duration< Rep1, Period1 > &  showTimestamp,
const cn::duration< Rep2, Period2 > &  hideTimestamp,
const UStringList lines = UStringList() 
)

Full constructor.

Parameters
[in]pidPID number.
[in]pageTeletext page number.
[in]frameCountFrame counter in this page, starting at 1.
[in]showTimestampShow frame at this timestamp (in ms from start of stream)
[in]hideTimestampHide frame at this timestamp (in ms from start of stream)
[in]linesText lines.

Member Function Documentation

◆ lines()

const UStringList & ts::TeletextFrame::lines ( ) const
inline

Get the text lines.

May contain embedded HTML tags.

Returns
A constant reference to the text lines.

◆ addLine()

void ts::TeletextFrame::addLine ( const UString line)
inline

Add a line of text to the frame.

Parameters
[in]lineText line to add.

◆ pid()

PID ts::TeletextFrame::pid ( ) const
inline

Get the PID from which the frame originates.

Returns
The PID from which the frame originates.

◆ page()

int ts::TeletextFrame::page ( ) const
inline

Get the Teletext page number.

Returns
The Teletext page number.

◆ frameCount()

int ts::TeletextFrame::frameCount ( ) const
inline

Get the frame number in this page, starting at 1.

Returns
The frame number in this page, starting at 1.

◆ showTimestamp()

cn::milliseconds ts::TeletextFrame::showTimestamp ( ) const
inline

Get the "show" timestamp in ms from start of stream.

Returns
The "show" timestamp in ms from start of stream.

◆ hideTimestamp()

cn::milliseconds ts::TeletextFrame::hideTimestamp ( ) const
inline

Get the "hide" timestamp in ms from start of stream.

Returns
The "hide" timestamp in ms from start of stream.

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