![]() |
TSDuck v3.46-4930
MPEG Transport Stream Toolkit
|
#include <tsDSMCCCompatibilityDescriptor.h>
Classes | |
| class | Descriptor |
| class | SubDescriptor |
Public Member Functions | |
| DSMCCCompatibilityDescriptor ()=default | |
| size_t | binarySize () const |
| void | clear () |
| void | deserialize (PSIBuffer &buf) |
| bool | empty () const |
| bool | fromXML (DuckContext &duck, const xml::Element *parent, bool required=true, const UChar *xml_name=DEFAULT_XML_NAME) |
| void | serialize (PSIBuffer &buf, bool zero_size_if_empty=false) const |
| xml::Element * | toXML (DuckContext &duck, xml::Element *parent, bool only_not_empty=false, const UChar *xml_name=DEFAULT_XML_NAME) const |
Static Public Member Functions | |
| static bool | Display (TablesDisplay &display, PSIBuffer &buf, const UString &margin) |
Public Attributes | |
| std::list< Descriptor > | descs {} |
Static Public Attributes | |
| static constexpr const UChar * | DEFAULT_XML_NAME = u"compatibilityDescriptor" |
DSM-CC compatibilityDescriptor() structure.
|
default |
Default constructor.
| size_t ts::DSMCCCompatibilityDescriptor::binarySize | ( | ) | const |
Total number of bytes that is required to serialize the compatibilityDescriptor().
|
inline |
Clear the content of the compatibilityDescriptor() structure.
|
inline |
Check if the compatibilityDescriptor() is sempty.
| void ts::DSMCCCompatibilityDescriptor::serialize | ( | PSIBuffer & | buf, |
| bool | zero_size_if_empty = false ) const |
Serialize the compatibilityDescriptor().
| [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. |
| void ts::DSMCCCompatibilityDescriptor::deserialize | ( | PSIBuffer & | buf | ) |
Deserialize the compatibilityDescriptor().
| [in,out] | buf | Deserialization buffer. |
|
static |
A static method to display a compatibilityDescriptor().
| [in,out] | display | Display engine. |
| [in,out] | buf | A PSIBuffer over the compatibilityDescriptor(). |
| [in] | margin | Left margin content. |
| xml::Element * ts::DSMCCCompatibilityDescriptor::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.
| [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. |
| bool ts::DSMCCCompatibilityDescriptor::fromXML | ( | DuckContext & | duck, |
| const xml::Element * | parent, | ||
| bool | required = true, | ||
| const UChar * | xml_name = DEFAULT_XML_NAME ) |
This method decodes an XML compatibilityDescriptor().
| [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. |
| std::list<Descriptor> ts::DSMCCCompatibilityDescriptor::descs {} |
The compatibilityDescriptor() structure only contains a list of descriptors.
|
staticconstexpr |
Default XML name for a compatibilityDescriptor() structure.