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

Representation of a satellite position. More...

#include <tsSAT.h>

Inheritance diagram for ts::SAT::satellite_position_v2_info_type:
Collaboration diagram for ts::SAT::satellite_position_v2_info_type:

Classes

class  earth_orbiting_satallite_type
 Representation of an earth orbiting satellite position. More...
 
class  geostationary_position_type
 Representation of a geostationary satellite position. More...
 

Public Member Functions

 satellite_position_v2_info_type ()=default
 Default constructor.
 
 satellite_position_v2_info_type (PSIBuffer &buf)
 Read-in constructor.
 
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.
 
virtual void serialize (PSIBuffer &buf) const override
 This method serializes the attributes of a geostationary satellite.
 
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.
 

Public Attributes

std::optional< earth_orbiting_satallite_typeearthOrbiting {}
 attributes of an earth orbiting satellite
 
std::optional< geostationary_position_typegeostationaryPosition {}
 attributes of a geostationary satellite.
 
uint8_t position_system = 0
 1 bit.The positioning system that is used for this satellite.
 
uint32_t satellite_id = 0
 24 bits, A label to identify the satellite that is detailed here.
 

Detailed Description

Representation of a satellite position.

See also
ETSI EN 300 648, 5.2.11.2

Constructor & Destructor Documentation

◆ satellite_position_v2_info_type()

ts::SAT::satellite_position_v2_info_type::satellite_position_v2_info_type ( PSIBuffer buf)
inline

Read-in constructor.

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.

Member Function Documentation

◆ fromXML()

virtual bool ts::SAT::satellite_position_v2_info_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()

virtual void ts::SAT::satellite_position_v2_info_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::satellite_position_v2_info_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::satellite_position_v2_info_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.

Member Data Documentation

◆ position_system

uint8_t ts::SAT::satellite_position_v2_info_type::position_system = 0

1 bit.The positioning system that is used for this satellite.

The value '0' can be used for a satellite in geostationary orbit and the value '1' can be used for any earth-orbiting satellite.


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