![]() |
TSDuck v3.41-4255
MPEG Transport Stream Toolkit
|
Base class for objects which are attached to an AbstractTable. More...
#include <tsAbstractTableAttachment.h>
Public Member Functions | |
AbstractTableAttachment (const AbstractTable *table) | |
Basic constructor. | |
bool | hasTable () const |
Check if this instance has a parent table. | |
const AbstractTable * | table () 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. | |
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.
|
inlineexplicit |
Basic constructor.
[in] | table | Parent 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. |
TID ts::AbstractTableAttachment::tableId | ( | ) | const |
Get the table id of the parent table.
Standards ts::AbstractTableAttachment::tableStandards | ( | ) | const |
Get the standards of the parent table.
|
inline |
Get the parent table.
|
inline |
Check if this instance has a parent table.