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

Indicates if there is a transmission in the respective timeslot. More...

#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
 Default constructor.
 
 slot (uint16_t slot_num, bool on_)
 Constructor.
 
 slot (uint16_t slot_num, PSIBuffer &buf)
 Read-in constructor.
 
virtual void deserialize (PSIBuffer &buf) override
 This method deserializes (populates) the attributes of a geostationary satellite.
 
void deserialize (uint16_t slot_num, PSIBuffer &buf)
 This method deserializes (populates) the attributes of an illumination time slot.
 
virtual bool fromXML (const xml::Element *element) override
 This method populates this object from XML attributes and sub-element.
 
bool operator== (const slot &rhs) const
 Equivelance operator.
 
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

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/2]

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() [2/2]

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: