TSDuck v3.43-4441
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::DSMCCResourceDescriptor Class Reference

DSM-CC dsmccResourceDescriptor() structure. More...

#include <tsDSMCCResourceDescriptor.h>

Collaboration diagram for ts::DSMCCResourceDescriptor:

Public Member Functions

 DSMCCResourceDescriptor ()=default
 Default constructor.
 
size_t binarySize () const
 Total number of bytes that is required to serialize the dsmccResourceDescriptor().
 
void clear ()
 Clear the content of the dsmccResourceDescriptor() structure.
 
void deserialize (PSIBuffer &buf)
 Deserialize the dsmccResourceDescriptor().
 
bool fromXML (DuckContext &duck, const xml::Element *parent, const UChar *xml_name=DEFAULT_XML_NAME)
 This method decodes an XML dsmccResourceDescriptor().
 
void serialize (PSIBuffer &buf) const
 Serialize the dsmccResourceDescriptor().
 
xml::ElementtoXML (DuckContext &duck, xml::Element *parent, const UChar *xml_name=DEFAULT_XML_NAME) const
 This method converts a dsmccResourceDescriptor() to XML.
 

Static Public Member Functions

static bool Display (TablesDisplay &display, PSIBuffer &buf, const UString &margin)
 A static method to display a dsmccResourceDescriptor().
 

Public Attributes

uint16_t associationTag = 0
 Identifies the groups of resources or shared resources that together make up an end-to-end connection.
 
uint16_t resourceDataFieldCount = 0
 Indicates the total number of data fields in the resource descriptor.
 
ByteBlock resourceDescriptorDataFields {}
 Resource descriptor data fields.
 
uint16_t resourceDescriptorType = 0
 Defines the specific resource being requested.
 
uint8_t resourceFlags = 0
 Resource flags.
 
uint16_t resourceNum = 0
 A unique number.
 
uint16_t resourceRequestId = 0
 Correlate the resource specified in the Request message with the result given in the Confirm message.
 
uint8_t resourceStatus = 0
 Status of the requested resource between the Server and the Network or Client.
 
uint32_t typeOwnerId = 0
 24 bits, required when resourceDescriptorType == 0xFFFF"
 
uint32_t typeOwnerValue = 0
 24 bits, required when resourceDescriptorType == 0xFFFF">
 

Static Public Attributes

static constexpr const UCharDEFAULT_XML_NAME = u"dsmccResourceDescriptor"
 Default XML name for a dsmccResourceDescriptor() structure.
 

Detailed Description

DSM-CC dsmccResourceDescriptor() structure.

See also
ISO/IEC 13818-6, 4.7.1
ATSC A/90, 12.3.2

Member Function Documentation

◆ binarySize()

size_t ts::DSMCCResourceDescriptor::binarySize ( ) const

Total number of bytes that is required to serialize the dsmccResourceDescriptor().

Returns
The total number of bytes that is required to serialize the dsmccResourceDescriptor().

◆ serialize()

void ts::DSMCCResourceDescriptor::serialize ( PSIBuffer buf) const

Serialize the dsmccResourceDescriptor().

Parameters
[in,out]bufSerialization buffer.

◆ deserialize()

void ts::DSMCCResourceDescriptor::deserialize ( PSIBuffer buf)

Deserialize the dsmccResourceDescriptor().

Parameters
[in,out]bufDeserialization buffer.

◆ Display()

static bool ts::DSMCCResourceDescriptor::Display ( TablesDisplay display,
PSIBuffer buf,
const UString margin 
)
static

A static method to display a dsmccResourceDescriptor().

Parameters
[in,out]displayDisplay engine.
[in,out]bufA PSIBuffer over the dsmccResourceDescriptor().
[in]marginLeft margin content.
Returns
True on success, false on error.

◆ toXML()

xml::Element * ts::DSMCCResourceDescriptor::toXML ( DuckContext duck,
xml::Element parent,
const UChar xml_name = DEFAULT_XML_NAME 
) const

This method converts a dsmccResourceDescriptor() to XML.

Parameters
[in,out]duckTSDuck execution context.
[in,out]parentThe parent node for the XML dsmccResourceDescriptor().
[in]xml_nameName of the XML element to generate.
Returns
The XML element representing the dsmccResourceDescriptor() or the null pointer if only_not_empty is true and the dsmccResourceDescriptor() is empty.

◆ fromXML()

bool ts::DSMCCResourceDescriptor::fromXML ( DuckContext duck,
const xml::Element parent,
const UChar xml_name = DEFAULT_XML_NAME 
)

This method decodes an XML dsmccResourceDescriptor().

Parameters
[in,out]duckTSDuck execution context.
[in]parentThe XML element containing the dsmccResourceDescriptor() or the dsmccResourceDescriptor() element itself if xml_name is null.
[in]xml_nameExpected name of the XML dsmccResourceDescriptor() inside parent. If null, parent is the Tap() element.
Returns
True on success, false on error.

Member Data Documentation

◆ resourceDescriptorDataFields

ByteBlock ts::DSMCCResourceDescriptor::resourceDescriptorDataFields {}

Resource descriptor data fields.

The structure of resourceDescriptorDataFields() is unclear. Currently, only the raw binary content can be specified.


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