TSDuck v3.43-4441
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

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

#include <tsDSMCCTap.h>

Collaboration diagram for ts::DSMCCTap:

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

uint16_t association_tag = 0
 This tag identifies a set of U-N Network ResourceDescriptors which have the same association tag value.
 
uint16_t id = 0
 This identifies the Tap to the Client.
 
ByteBlock selector_bytes {}
 When selector_type is present and != 1: Selector bytes.
 
std::optional< uint16_t > selector_type {}
 Selector type. If unset, there is no selector.
 
uint32_t timeout = 0
 When selector_type == 1: In microseconds, specific to the construction of a particular carousel.
 
uint32_t transaction_id = 0
 When selector_type == 1 (DSMCC_TAPSELTYPE_MESSAGE): Used for session integrity and error processing.
 
uint16_t use = 0
 This is a indication as to the type of the connection.
 

Static Public Attributes

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

Detailed Description

DSM-CC Tap() structure.

See also
ISO/IEC 13818-6, 5.6.1
ETSI TR 101 202, 4.7.2.5
ATSC A/90, 12.2.2

Member Function Documentation

◆ binarySize()

size_t ts::DSMCCTap::binarySize ( ) const

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

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

◆ serialize()

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

Serialize the Tap().

Parameters
[in,out]bufSerialization buffer.

◆ deserialize()

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

Deserialize the Tap().

Parameters
[in,out]bufDeserialization buffer.

◆ Display()

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

A static method to display a Tap().

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

◆ toXML()

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

This method converts a Tap() to XML.

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

◆ fromXML()

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

This method decodes an XML Tap().

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

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