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

#include <tsDSMCCResourceDescriptor.h>

Collaboration diagram for ts::DSMCCResourceDescriptor:

Public Member Functions

 DSMCCResourceDescriptor ()=default
size_t binarySize () const
void clear ()
void deserialize (PSIBuffer &buf)
bool fromXML (DuckContext &duck, const xml::Element *parent, const UChar *xml_name=DEFAULT_XML_NAME)
void serialize (PSIBuffer &buf) const
xml::Element * toXML (DuckContext &duck, xml::Element *parent, const UChar *xml_name=DEFAULT_XML_NAME) const

Static Public Member Functions

static bool Display (TablesDisplay &display, PSIBuffer &buf, const UString &margin)

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 {}
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 UChar * DEFAULT_XML_NAME = u"dsmccResourceDescriptor"

Detailed Description

DSM-CC dsmccResourceDescriptor() structure.

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

Constructor & Destructor Documentation

◆ DSMCCResourceDescriptor()

ts::DSMCCResourceDescriptor::DSMCCResourceDescriptor ( )
default

Default constructor.

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().

◆ clear()

void ts::DSMCCResourceDescriptor::clear ( )

Clear the content of the dsmccResourceDescriptor() structure.

◆ 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()

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.

◆ DEFAULT_XML_NAME

const UChar* ts::DSMCCResourceDescriptor::DEFAULT_XML_NAME = u"dsmccResourceDescriptor"
staticconstexpr

Default XML name for a dsmccResourceDescriptor() structure.


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