TSDuck v3.41-4255
MPEG Transport Stream Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages Concepts
ts::AbstractTableAttachment Class Reference

Base class for objects which are attached to an AbstractTable. More...

#include <tsAbstractTableAttachment.h>

Inheritance diagram for ts::AbstractTableAttachment:

Public Member Functions

 AbstractTableAttachment (const AbstractTable *table)
 Basic constructor.
 
bool hasTable () const
 Check if this instance has a parent table.
 
const AbstractTabletable () const
 Get the parent table.
 
TID tableId () const
 Get the table id of the parent table.
 
Standards tableStandards () const
 Get the standards of the parent table.
 

Detailed Description

Base class for objects which are attached to an AbstractTable.

An instance of such object classes is permanently attached to a table. The link to the table is established in the constructor and never changes. Assigning instances means copy to object contents but leave the table attachment of the target unchanged.

Constructor & Destructor Documentation

◆ AbstractTableAttachment()

ts::AbstractTableAttachment::AbstractTableAttachment ( const AbstractTable table)
inlineexplicit

Basic constructor.

Parameters
[in]tableParent table. An instance is always attached to a table it is part of. Use zero for an object outside a table. There is no default value because zero is considered as an unusual use case and we want to avoid missing table pointer in constructors of the various tables.

Member Function Documentation

◆ tableId()

TID ts::AbstractTableAttachment::tableId ( ) const

Get the table id of the parent table.

Returns
The table id of the parent table or TID_NULL if there is none.

◆ tableStandards()

Standards ts::AbstractTableAttachment::tableStandards ( ) const

Get the standards of the parent table.

Returns
The standards of the parent table or NONE if there is none.

◆ table()

const AbstractTable * ts::AbstractTableAttachment::table ( ) const
inline

Get the parent table.

Returns
The parent table or zero if there is none.

◆ hasTable()

bool ts::AbstractTableAttachment::hasTable ( ) const
inline

Check if this instance has a parent table.

Returns
True if there is one parent table.

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