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

#include <tsSAT.h>

Inheritance diagram for ts::SAT::beam_hopping_time_plan_info_type::slot:
Collaboration diagram for ts::SAT::beam_hopping_time_plan_info_type::slot:

Public Member Functions

 slot ()=default
 slot (uint16_t slot_num, bool on_)
 slot (uint16_t slot_num, PSIBuffer &buf)
virtual void deserialize (PSIBuffer &buf) override
void deserialize (uint16_t slot_num, PSIBuffer &buf)
virtual bool fromXML (const xml::Element *element) override
bool operator== (const slot &rhs) const
virtual void serialize (PSIBuffer &buf) const override
virtual void toXML (xml::Element *root) override

Public Attributes

uint16_t number = 0
 The beam number.
bool on = false
 Illuminatiom state of the beam.

Detailed Description

Indicates if there is a transmission in the respective timeslot.

Constructor & Destructor Documentation

◆ slot() [1/3]

ts::SAT::beam_hopping_time_plan_info_type::slot::slot ( )
default

Default constructor.

◆ slot() [2/3]

ts::SAT::beam_hopping_time_plan_info_type::slot::slot ( uint16_t slot_num,
bool on_ )
inline

Constructor.

Parameters
[in]slot_numSlot number.
[in]on_slot illumination state.

◆ slot() [3/3]

ts::SAT::beam_hopping_time_plan_info_type::slot::slot ( uint16_t slot_num,
PSIBuffer & buf )
inline

Read-in constructor.

Parameters
[in]slot_numSlot number.
[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

◆ operator==()

bool ts::SAT::beam_hopping_time_plan_info_type::slot::operator== ( const slot & rhs) const
inline

Equivelance operator.

Parameters
[in]rhsother oblect to compare to.
Returns
true if an illumination status has already been signalled for the slot number

◆ deserialize() [1/2]

void ts::SAT::beam_hopping_time_plan_info_type::slot::deserialize ( uint16_t slot_num,
PSIBuffer & buf )

This method deserializes (populates) the attributes of an illumination time slot.

Parameters
[in]slot_numthe time slot for which illimination is being specified.
[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.

◆ fromXML()

virtual bool ts::SAT::beam_hopping_time_plan_info_type::slot::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::beam_hopping_time_plan_info_type::slot::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::beam_hopping_time_plan_info_type::slot::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() [2/2]

virtual void ts::SAT::beam_hopping_time_plan_info_type::slot::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: