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

Network Clock Reference. More...

#include <tsSAT.h>

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

Public Member Functions

 NCR_type ()=default
 Default constructor.
 
void clear ()
 Clear values.
 
virtual void deserialize (PSIBuffer &buf) override
 This method deserializes (populates) the attributes of a geostationary satellite.
 
virtual bool fromXML (const xml::Element *element) override
 This method populates this object from XML attributes and sub-element.
 
bool fromXML (const xml::Element *parent, const UString element_name)
 This method populates this object from XML attributes and sub-element.
 
virtual void serialize (PSIBuffer &buf) const override
 This method serializes the attributes of a geostationary satellite.
 
void 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.
 
virtual void toXML (xml::Element *root) override
 This method converts this object to XML by populating necessary attributes and sub-elements into the provided element.
 

Static Public Member Functions

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

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.

Member Function Documentation

◆ serialized_length()

static 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: