Description of one Teletext frame.
More...
#include <tsTeletextFrame.h>
|
| 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 UStringList & | lines () 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.
|
|
Description of one Teletext frame.
◆ 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] | pid | PID number. |
[in] | page | Teletext page number. |
[in] | frameCount | Frame counter in this page, starting at 1. |
[in] | showTimestamp | Show frame at this timestamp (in ms from start of stream) |
[in] | hideTimestamp | Hide frame at this timestamp (in ms from start of stream) |
[in] | lines | Text lines. |
◆ lines()
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] | line | Text 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: