Abstract base class for MPEG PSI/SI tables. More...
Public Member Functions | |
virtual | ~QtsAbstractTable () |
Virtual destructor. More... | |
virtual bool | deserialize (const QtsTable &table)=0 |
This abstract method deserializes a binary table. More... | |
void | invalidate () |
Invalidate the table. More... | |
bool | isValid () const |
Check if the table is valid. More... | |
virtual bool | serialize (QtsTable &table) const =0 |
This abstract method serializes a table. More... | |
QtsTableId | tableId () const |
Get the table id. More... | |
Protected Member Functions | |
QtsAbstractTable (QtsTableId tid) | |
Protected constructor for subclasses. More... | |
bool | deserializeInit (const QtsTable &table) |
Deserialization helper: Start the deserialization. More... | |
bool | serializeInit (QtsTable &table) const |
Serialization helper: Start a new binary table. More... | |
Protected Attributes | |
bool | _isValid |
Validity flag. More... | |
QtsTableId | _tableId |
Table id, can be modified by subclasses. More... | |
Private Member Functions | |
QtsAbstractTable () Q_DECL_EQ_DELETE | |
Abstract base class for MPEG PSI/SI tables.
|
inlinevirtual |
Virtual destructor.
|
inlineprotected |
Protected constructor for subclasses.
[in] | tid | Table id. |
|
private |
|
inline |
Check if the table is valid.
|
inline |
Invalidate the table.
The table must be rebuilt.
|
inline |
Get the table id.
|
pure virtual |
This abstract method serializes a table.
[out] | table | Replaced with a binary representation (a list of sections) of this object. |
Implemented in QtsProgramMapTable, and QtsProgramAssociationTable.
|
pure virtual |
This abstract method deserializes a binary table.
[out] | table | Binary table to deserialize. If the binary table is not a valid representation of the QtsAbstractTable subclass, this object is invalid. |
Implemented in QtsProgramMapTable, and QtsProgramAssociationTable.
|
protected |
Serialization helper: Start a new binary table.
[out] | table | The binary table into which this object will be serialized. We invalidate it initially. |
|
protected |
Deserialization helper: Start the deserialization.
This object is marked as invalid. The deserialize() method shall set it to true later if the serialization succeeds.
[in] | table | Binary table to deserialize. |
|
protected |
Table id, can be modified by subclasses.
|
protected |
Validity flag.
It is the responsibility of the subclasses to set the valid flag.