DSM-CC compatibilityDescriptor() structure.
More...
#include <tsDSMCCCompatibilityDescriptor.h>
|
| DSMCCCompatibilityDescriptor ()=default |
| Default constructor.
|
|
size_t | binarySize () const |
| Total number of bytes that is required to serialize the compatibilityDescriptor().
|
|
void | clear () |
| Clear the content of the compatibilityDescriptor() structure.
|
|
void | deserialize (PSIBuffer &buf) |
| Deserialize the compatibilityDescriptor().
|
|
bool | empty () const |
| Check if the compatibilityDescriptor() is sempty.
|
|
bool | fromXML (DuckContext &duck, const xml::Element *parent, bool required=true, const UChar *xml_name=DEFAULT_XML_NAME) |
| This method decodes an XML compatibilityDescriptor().
|
|
void | serialize (PSIBuffer &buf, bool zero_size_if_empty=false) const |
| Serialize the compatibilityDescriptor().
|
|
xml::Element * | toXML (DuckContext &duck, xml::Element *parent, bool only_not_empty=false, const UChar *xml_name=DEFAULT_XML_NAME) const |
| This method converts a compatibilityDescriptor() to XML.
|
|
|
std::list< Descriptor > | descs {} |
| The compatibilityDescriptor() structure only contains a list of descriptors.
|
|
|
static constexpr const UChar * | DEFAULT_XML_NAME = u"compatibilityDescriptor" |
| Default XML name for a compatibilityDescriptor() structure.
|
|
DSM-CC compatibilityDescriptor() structure.
- See also
- ISO/IEC 13818-6, 6.1
-
ATSC A/90, 6.1
◆ binarySize()
size_t ts::DSMCCCompatibilityDescriptor::binarySize |
( |
| ) |
const |
Total number of bytes that is required to serialize the compatibilityDescriptor().
- Returns
- The total number of bytes that is required to serialize the compatibilityDescriptor().
◆ empty()
bool ts::DSMCCCompatibilityDescriptor::empty |
( |
| ) |
const |
|
inline |
Check if the compatibilityDescriptor() is sempty.
- Returns
- True if the compatibilityDescriptor() is empty.
◆ serialize()
void ts::DSMCCCompatibilityDescriptor::serialize |
( |
PSIBuffer & |
buf, |
|
|
bool |
zero_size_if_empty = false |
|
) |
| const |
Serialize the compatibilityDescriptor().
- Parameters
-
[in,out] | buf | Serialization buffer. |
[in] | zero_size_if_empty | If true and the compatibilityDescriptor() is empty (no descriptor), generate a zero-size structure, without number of descriptors. |
◆ deserialize()
void ts::DSMCCCompatibilityDescriptor::deserialize |
( |
PSIBuffer & |
buf | ) |
|
Deserialize the compatibilityDescriptor().
- Parameters
-
[in,out] | buf | Deserialization buffer. |
◆ Display()
A static method to display a compatibilityDescriptor().
- Parameters
-
[in,out] | display | Display engine. |
[in,out] | buf | A PSIBuffer over the compatibilityDescriptor(). |
[in] | margin | Left margin content. |
- Returns
- True on success, false on error.
◆ toXML()
This method converts a compatibilityDescriptor() to XML.
- Parameters
-
[in,out] | duck | TSDuck execution context. |
[in,out] | parent | The parent node for the XML compatibilityDescriptor(). |
[in] | only_not_empty | If true and the compatibilityDescriptor() is empty, do not insert an XML element. |
[in] | xml_name | Name of the XML element to generate. |
- Returns
- The XML element representing the compatibilityDescriptor() or the null pointer if only_not_empty is true and the compatibilityDescriptor() is empty.
◆ fromXML()
This method decodes an XML compatibilityDescriptor().
- Parameters
-
[in,out] | duck | TSDuck execution context. |
[in] | parent | The XML element containing the compatibilityDescriptor() or the compatibilityDescriptor() element itself if xml_name is null. |
[in] | required | If false, the compatibilityDescriptor element is optional. |
[in] | xml_name | Expected name of the XML compatibilityDescriptor() inside parent. If null, parent is the compatibilityDescriptor() element. |
- Returns
- True on success, false on error.
The documentation for this class was generated from the following file: