ITS
|
#include <TSBPacket.h>
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 |
Definition at line 20 of file TSBPacket.h.
enum TSBPacket::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.
TSBPacket::TSBPacket | ( | ) |
TSBPacket::TSBPacket | ( | quint16 | sequenceNumber, |
LongPositionVector | lpv | ||
) |
TSBPacket TSBPacket initialization constructor.
sequenceNumber | The sequence number. |
lpv | The SO PV. |
Definition at line 8 of file TSBPacket.cpp.
References m_reserved, m_sequenceNumber, m_soPv, and sequenceNumber().
TSBPacket::TSBPacket | ( | const TSBPacket & | other | ) |
TSBPacket TSBPacket copy constructor.
other | The TSBPacket to copy. |
Definition at line 15 of file TSBPacket.cpp.
References m_reserved, m_sequenceNumber, m_soPv, and soPv().
TSBPacket::~TSBPacket | ( | ) |
~TSBPacket The TSBPacket destructor.
Definition at line 22 of file TSBPacket.cpp.
quint64 TSBPacket::extract | ( | uchar * | packet | ) |
extract Extract GBC from packet.
packet | The packet to extract. |
Definition at line 26 of file TSBPacket.cpp.
References LongPositionVector::extract(), get_UINT16(), m_reserved, m_sequenceNumber, and m_soPv.
Referenced by GeoNet::tsbPacketProcessing().
|
inline |
sequenceNumber TSB sequence number getter.
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().
|
inline |
setSoPv TSB SO PV setter.
lpv | The new TSB SO PV. |
Definition at line 78 of file TSBPacket.h.
References m_soPv.
Referenced by BroadcastForwardingPacketEntry::updateSourcePacketSoPv().
|
inline |
soPv TSB SO PV getter.
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().
QByteArray TSBPacket::toHex | ( | ) |
toHex Create a QByteArray containing the hexadecimal format of the GBCPacket.
Definition at line 37 of file TSBPacket.cpp.
References LongPositionVector::helper_size, m_reserved, m_sequenceNumber, m_soPv, and LongPositionVector::toHex().
|
protected |
TSB reserved field.
Definition at line 82 of file TSBPacket.h.
Referenced by LSRequestPacket::extract(), extract(), LSRequestPacket::LSRequestPacket(), toHex(), LSRequestPacket::toHex(), and TSBPacket().
|
protected |
TSB sequence number.
Definition at line 81 of file TSBPacket.h.
Referenced by LSRequestPacket::extract(), extract(), LSRequestPacket::LSRequestPacket(), sequenceNumber(), LSRequestPacket::toHex(), toHex(), and TSBPacket().
|
protected |
TSB SO PV.
Definition at line 83 of file TSBPacket.h.
Referenced by LSRequestPacket::extract(), extract(), LSRequestPacket::LSRequestPacket(), setSoPv(), soPv(), toHex(), LSRequestPacket::toHex(), and TSBPacket().