TSDuck Version 3.32-2769 (TSDuck - The MPEG Transport Stream Toolkit)
ts::EITRepetitionProfile Class Reference

EIT sections repetition profile. More...

Collaboration diagram for ts::EITRepetitionProfile:

Public Member Functions

 EITRepetitionProfile (size_t days=1, std::initializer_list< size_t > cycles=std::initializer_list< size_t >())
 Constructor. More...
 
Time laterPeriod (const Time &now) const
 Compute the starting date of the "later" period. More...
 
uint8_t laterSectionNumber () const
 Compute the first section number in the "later" period. More...
 
TID laterTableId (bool actual) const
 Compute the first EIT table id in the "later" period. More...
 
size_t repetitionSeconds (const Section &section)
 Determine the repetition cycle of an EIT section. More...
 
EITProfile sectionToProfile (const Section &section)
 Determine the repetition profile of an EIT section. More...
 

Public Attributes

std::array< size_t, PROFILE_COUNTcycle_seconds
 Cycle time in seconds of each EIT sections repetition profile. More...
 
size_t prime_days
 Duration in days of the "prime" period for EIT schedule. More...
 

Static Public Attributes

static constexpr size_t PROFILE_COUNT = size_t(EITProfile::SCHED_OTHER_LATER) + 1
 Number of EIT sections repetition profiles.
 
static const EITRepetitionProfile SatelliteCable
 Standard EIT repetition profile for satellite and cable networks. More...
 
static const EITRepetitionProfile Terrestrial
 Standard EIT repetition profile for terrestrial networks. More...
 

Detailed Description

EIT sections repetition profile.

Constructor & Destructor Documentation

◆ EITRepetitionProfile()

ts::EITRepetitionProfile::EITRepetitionProfile ( size_t  days = 1,
std::initializer_list< size_t >  cycles = std::initializer_list< size_t >() 
)

Constructor.

Parameters
[in]daysNumber of prime days.
[in]cyclesUp to 6 cycles in seconds. Missing values are replaced by the last value in the list. If the list is empty, all cycles are 10 seconds long.

Member Function Documentation

◆ laterPeriod()

Time ts::EITRepetitionProfile::laterPeriod ( const Time now) const

Compute the starting date of the "later" period.

Parameters
[in]nowCurrent UTC time.
Returns
Starting UTC time of the "later" period.

◆ laterTableId()

TID ts::EITRepetitionProfile::laterTableId ( bool  actual) const

Compute the first EIT table id in the "later" period.

If a table id is equal this one, this is not sufficient to determine if the corresponding section is in the "prime" or "later" period. Check the section number as well.

Parameters
[in]actualTrue for EIT actual, false for EIT other.
Returns
First EIT table id in the "later" period.
See also
laterSectionNumber()

◆ laterSectionNumber()

uint8_t ts::EITRepetitionProfile::laterSectionNumber ( ) const

Compute the first section number in the "later" period.

Returns
First section number in the "later" period.

◆ sectionToProfile()

EITProfile ts::EITRepetitionProfile::sectionToProfile ( const Section section)

Determine the repetition profile of an EIT section.

Parameters
[in]sectionA valid EIT section.
Returns
The repetition profile of section. Undefined if the section is not a valid EIT.

◆ repetitionSeconds()

size_t ts::EITRepetitionProfile::repetitionSeconds ( const Section section)

Determine the repetition cycle of an EIT section.

Parameters
[in]sectionA valid EIT section.
Returns
The repetition cycle in seconds of section. Undefined if the section is not a valid EIT.

Member Data Documentation

◆ prime_days

size_t ts::EITRepetitionProfile::prime_days

Duration in days of the "prime" period for EIT schedule.

EIT schedule for events in the prime period (i.e. the next few days) are repeated more often than for later events.

◆ cycle_seconds

std::array<size_t, PROFILE_COUNT> ts::EITRepetitionProfile::cycle_seconds

Cycle time in seconds of each EIT sections repetition profile.

The array is indexed by EITProfile.

◆ SatelliteCable

const EITRepetitionProfile ts::EITRepetitionProfile::SatelliteCable
static

Standard EIT repetition profile for satellite and cable networks.

See also
ETSI TS 101 211, section 4.1.4

◆ Terrestrial

const EITRepetitionProfile ts::EITRepetitionProfile::Terrestrial
static

Standard EIT repetition profile for terrestrial networks.

See also
ETSI TS 101 211, section 4.1.4

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