TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::SAT::NCR_type Class Reference

#include <tsSAT.h>

Inheritance diagram for ts::SAT::NCR_type:
Collaboration diagram for ts::SAT::NCR_type:

Public Member Functions

 NCR_type ()=default
void clear ()
virtual void deserialize (PSIBuffer &buf) override
virtual bool fromXML (const xml::Element *element) override
bool fromXML (const xml::Element *parent, const UString &element_name)
virtual void serialize (PSIBuffer &buf) const override
void toXML (xml::Element *parent, const UString &element_name)
virtual void toXML (xml::Element *root) override

Static Public Member Functions

static uint16_t serialized_length ()

Public Attributes

uint64_t base = 0
 33 bits. NCR time div 300, as specified in ETSI EN 301 790 and ISO/IEC 13818-1.
uint16_t ext = 0
 9 bits. NCR time mod 300, as specified in ETSI EN 301 790 and ISO/IEC 13818-1.

Detailed Description

Network Clock Reference

Constructor & Destructor Documentation

◆ NCR_type()

ts::SAT::NCR_type::NCR_type ( )
default

Default constructor.

Member Function Documentation

◆ clear()

void ts::SAT::NCR_type::clear ( )

Clear values.

◆ serialized_length()

uint16_t ts::SAT::NCR_type::serialized_length ( )
inlinestatic

The length (in bytes) of a network clock reference when serialized.

Returns
the length in bytes of a serialized network clock reference.

◆ fromXML() [1/2]

bool ts::SAT::NCR_type::fromXML ( const xml::Element * parent,
const UString & element_name )

This method populates this object from XML attributes and sub-element

Parameters
[in]parentThe element whose attributes and sub-elements are parsed to construct this object
[in]element_nameThe name of the new element that contaiuning the attributes associated with this clock reference.
Returns
true if the requisite attributes and sub-elements are available and correct

◆ toXML() [1/2]

void ts::SAT::NCR_type::toXML ( xml::Element * parent,
const UString & element_name )

This method converts this object to XML by populating necessary attributes and sub-elements into the provided element

Parameters
[in,out]parentThe element whose attributes and sub-elements are added to to represent values in this object
[in]element_nameThe name of the element that will contain the serialized values as attributes..

◆ fromXML() [2/2]

virtual bool ts::SAT::NCR_type::fromXML ( const xml::Element * element)
overridevirtual

This method populates this object from XML attributes and sub-element

Parameters
[in]elementThe element whose attributes and sub-elements are parsed to construct this object
Returns
true if the requisite attributes and sub-elements are available and correct

Implements ts::SAT::SAT_base.

◆ toXML() [2/2]

virtual void ts::SAT::NCR_type::toXML ( xml::Element * root)
overridevirtual

This method converts this object to XML by populating necessary attributes and sub-elements into the provided element

Parameters
[in,out]rootThe element whose attributes and sub-elements are added to to represent values in this object

Implements ts::SAT::SAT_base.

◆ serialize()

virtual void ts::SAT::NCR_type::serialize ( PSIBuffer & buf) const
overridevirtual

This method serializes the attributes of a geostationary satellite.

Parameters
[in,out]bufA PSIBuffer with the appropriate size for the section payload.

Implements ts::SAT::SAT_base.

◆ deserialize()

virtual void ts::SAT::NCR_type::deserialize ( PSIBuffer & buf)
overridevirtual

This method deserializes (populates) the attributes of a geostationary satellite.

Parameters
[in,out]bufDeserialization buffer. Read the descriptor payload from buf. The end of read is the end of the binary payload. If any kind of error is reported in the buffer or if the payload is not completely read, the deserialization is considered as invalid.

Implements ts::SAT::SAT_base.


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