MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Attributes | List of all members
TableStatus Class Reference

#include <libmythtv/mpeg/tablestatus.h>

Collaboration diagram for TableStatus:
[legend]

Public Types

using sections_t = std::vector< uint8_t >
 

Public Member Functions

 TableStatus ()=default
 
void SetVersion (int32_t version, uint32_t last_section)
 
void SetSectionSeen (int32_t version, uint32_t section, uint32_t last_section, uint32_t segment_last_section=0xffff)
 
bool IsSectionSeen (int32_t version, uint32_t section) const
 
bool HasAllSections () const
 

Static Public Member Functions

static void InitSections (sections_t &sect, uint32_t last_section)
 

Public Attributes

int32_t m_version {-2}
 
sections_t m_sections
 

Static Private Attributes

static const std::array< const uint8_t, 8 > kInitBits = {0xfe, 0xfc, 0xf8, 0xf0, 0xe0, 0xc0, 0x80, 0x00}
 

Detailed Description

Definition at line 14 of file tablestatus.h.

Member Typedef Documentation

◆ sections_t

using TableStatus::sections_t = std::vector<uint8_t>

Definition at line 17 of file tablestatus.h.

Constructor & Destructor Documentation

◆ TableStatus()

TableStatus::TableStatus ( )
default

Member Function Documentation

◆ InitSections()

void TableStatus::InitSections ( sections_t sect,
uint32_t  last_section 
)
static

Definition at line 10 of file tablestatus.cpp.

Referenced by SetVersion().

◆ SetVersion()

void TableStatus::SetVersion ( int32_t  version,
uint32_t  last_section 
)

◆ SetSectionSeen()

void TableStatus::SetSectionSeen ( int32_t  version,
uint32_t  section,
uint32_t  last_section,
uint32_t  segment_last_section = 0xffff 
)

Definition at line 30 of file tablestatus.cpp.

Referenced by DVBStreamData::HandleTables(), and TableStatusMap::SetSectionSeen().

◆ IsSectionSeen()

bool TableStatus::IsSectionSeen ( int32_t  version,
uint32_t  section 
) const

Definition at line 41 of file tablestatus.cpp.

Referenced by DVBStreamData::IsRedundant().

◆ HasAllSections()

bool TableStatus::HasAllSections ( ) const

Member Data Documentation

◆ m_version

int32_t TableStatus::m_version {-2}

Definition at line 27 of file tablestatus.h.

Referenced by IsSectionSeen(), and SetVersion().

◆ m_sections

sections_t TableStatus::m_sections

Definition at line 28 of file tablestatus.h.

Referenced by HasAllSections(), IsSectionSeen(), SetSectionSeen(), and SetVersion().

◆ kInitBits

const std::array< const uint8_t, 8 > TableStatus::kInitBits = {0xfe, 0xfc, 0xf8, 0xf0, 0xe0, 0xc0, 0x80, 0x00}
staticprivate

Definition at line 31 of file tablestatus.h.

Referenced by InitSections(), and SetSectionSeen().


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