TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

#include <tsDSMCCTap.h>

Collaboration diagram for ts::DSMCCTap:

Public Member Functions

 DSMCCTap ()=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 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 UChar * DEFAULT_XML_NAME = u"Tap"

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

Constructor & Destructor Documentation

◆ DSMCCTap()

ts::DSMCCTap::DSMCCTap ( )
default

Default constructor.

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

◆ clear()

void ts::DSMCCTap::clear ( )

Clear the content of the Tap() structure.

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

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.

Member Data Documentation

◆ DEFAULT_XML_NAME

const UChar* ts::DSMCCTap::DEFAULT_XML_NAME = u"Tap"
staticconstexpr

Default XML name for a Tap() structure.


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