ITS
TSBPacket Class Reference

#include <TSBPacket.h>

Inheritance diagram for TSBPacket:
[legend]
Collaboration diagram for TSBPacket:
[legend]

Public Types

enum  e_helper { helper_size = 4 + LongPositionVector::helper_size }
 The e_helper enum is used to help to have sizes. More...
 

Public Member Functions

 TSBPacket ()
 TSBPacket TSBPacket constructor. More...
 
 TSBPacket (quint16 sequenceNumber, LongPositionVector lpv)
 TSBPacket TSBPacket initialization constructor. More...
 
 TSBPacket (const TSBPacket &other)
 TSBPacket TSBPacket copy constructor. More...
 
 ~TSBPacket ()
 ~TSBPacket The TSBPacket destructor. More...
 
quint64 extract (uchar *packet)
 extract Extract GBC from packet. More...
 
QByteArray toHex ()
 toHex Create a QByteArray containing the hexadecimal format of the GBCPacket. More...
 
quint16 sequenceNumber () const
 sequenceNumber TSB sequence number getter. More...
 
LongPositionVector soPv () const
 soPv TSB SO PV getter. More...
 
void setSoPv (LongPositionVector lpv)
 setSoPv TSB SO PV setter. More...
 

Protected Attributes

quint16 m_sequenceNumber
 
quint16 m_reserved
 
LongPositionVector m_soPv
 

Detailed Description

Definition at line 20 of file TSBPacket.h.

Member Enumeration Documentation

◆ e_helper

The e_helper enum is used to help to have sizes.

Enumerator
helper_size 

Size of the TSB in bytes.

Definition at line 26 of file TSBPacket.h.

Constructor & Destructor Documentation

◆ TSBPacket() [1/3]

TSBPacket::TSBPacket ( )

TSBPacket TSBPacket constructor.

Definition at line 3 of file TSBPacket.cpp.

References m_reserved.

◆ TSBPacket() [2/3]

TSBPacket::TSBPacket ( quint16  sequenceNumber,
LongPositionVector  lpv 
)

TSBPacket TSBPacket initialization constructor.

Parameters
sequenceNumberThe sequence number.
lpvThe SO PV.

Definition at line 8 of file TSBPacket.cpp.

References m_reserved, m_sequenceNumber, m_soPv, and sequenceNumber().

Here is the call graph for this function:

◆ TSBPacket() [3/3]

TSBPacket::TSBPacket ( const TSBPacket other)

TSBPacket TSBPacket copy constructor.

Parameters
otherThe TSBPacket to copy.

Definition at line 15 of file TSBPacket.cpp.

References m_reserved, m_sequenceNumber, m_soPv, and soPv().

Here is the call graph for this function:

◆ ~TSBPacket()

TSBPacket::~TSBPacket ( )

~TSBPacket The TSBPacket destructor.

Definition at line 22 of file TSBPacket.cpp.

Member Function Documentation

◆ extract()

quint64 TSBPacket::extract ( uchar *  packet)

extract Extract GBC from packet.

Parameters
packetThe packet to extract.
Returns
The number of bytes read.

Definition at line 26 of file TSBPacket.cpp.

References LongPositionVector::extract(), get_UINT16(), m_reserved, m_sequenceNumber, and m_soPv.

Referenced by GeoNet::tsbPacketProcessing().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sequenceNumber()

quint16 TSBPacket::sequenceNumber ( ) const
inline

sequenceNumber TSB sequence number getter.

Returns
The TSB sequence number.

Definition at line 68 of file TSBPacket.h.

References m_sequenceNumber.

Referenced by HistoryPacketBuffer::addPacket(), BroadcastForwardingPacketBuffer::isDuplicateTimestamp(), HistoryPacketBuffer::isDuplicateTimestamp(), LSRequestPacket::LSRequestPacket(), GeoNet::LSRequestPacketProcessing(), BroadcastForwardingPacketEntry::operator==(), PacketBuffersEntry::operator==(), and TSBPacket().

Here is the caller graph for this function:

◆ setSoPv()

void TSBPacket::setSoPv ( LongPositionVector  lpv)
inline

setSoPv TSB SO PV setter.

Parameters
lpvThe new TSB SO PV.

Definition at line 78 of file TSBPacket.h.

References m_soPv.

Referenced by BroadcastForwardingPacketEntry::updateSourcePacketSoPv().

Here is the caller graph for this function:

◆ soPv()

LongPositionVector TSBPacket::soPv ( ) const
inline

soPv TSB SO PV getter.

Returns
The TSB SO PV.

Definition at line 73 of file TSBPacket.h.

References m_soPv.

Referenced by HistoryPacketBuffer::addPacket(), BroadcastForwardingPacketBuffer::isDuplicateTimestamp(), HistoryPacketBuffer::isDuplicateTimestamp(), GeoNet::LSRequestPacketProcessing(), BroadcastForwardingPacketEntry::operator==(), PacketBuffersEntry::operator==(), TSBPacket(), and BroadcastForwardingPacketEntry::updateSourcePacketSoPv().

Here is the caller graph for this function:

◆ toHex()

QByteArray TSBPacket::toHex ( )

toHex Create a QByteArray containing the hexadecimal format of the GBCPacket.

Returns
The created QByteArray.

Definition at line 37 of file TSBPacket.cpp.

References LongPositionVector::helper_size, m_reserved, m_sequenceNumber, m_soPv, and LongPositionVector::toHex().

Here is the call graph for this function:

Member Data Documentation

◆ m_reserved

quint16 TSBPacket::m_reserved
protected

◆ m_sequenceNumber

quint16 TSBPacket::m_sequenceNumber
protected

◆ m_soPv

LongPositionVector TSBPacket::m_soPv
protected

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