ITS
SHBPacket Class Reference

#include <SHBPacket.h>

Collaboration diagram for SHBPacket:
[legend]

Public Types

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

Public Member Functions

 SHBPacket ()
 SHBPacket SHBPacket constructor. More...
 
 SHBPacket (LongPositionVector lpv)
 SHBPacket SHBPacket initialization constructor. More...
 
 SHBPacket (const SHBPacket &other)
 SHBPacket SHBPacket copy constructor. More...
 
 ~SHBPacket ()
 ~SHBPacket SHBPacket destructor. More...
 
quint64 extract (uchar *packet)
 extract Extract GBC from packet. More...
 
QByteArray toHex ()
 toHex Create a QByteArray containing the hexadecimal format of the SHBPacket. More...
 
LongPositionVector soPv () const
 soPv SHB SO PV getter. More...
 
void setSoPv (LongPositionVector lpv)
 setSoPv SHB SO PV setter. More...
 

Private Attributes

LongPositionVector m_soPv
 
quint32 m_reserved
 

Detailed Description

Definition at line 19 of file SHBPacket.h.

Member Enumeration Documentation

◆ e_helper

The e_helper enum is used to help to have sizes.

Enumerator
helper_size 

Size of the SHB in bytes.

Definition at line 25 of file SHBPacket.h.

Constructor & Destructor Documentation

◆ SHBPacket() [1/3]

SHBPacket::SHBPacket ( )

SHBPacket SHBPacket constructor.

Definition at line 3 of file SHBPacket.cpp.

References m_reserved.

◆ SHBPacket() [2/3]

SHBPacket::SHBPacket ( LongPositionVector  lpv)

SHBPacket SHBPacket initialization constructor.

Parameters
lpvThe SO PV.

Definition at line 8 of file SHBPacket.cpp.

References m_reserved, and m_soPv.

◆ SHBPacket() [3/3]

SHBPacket::SHBPacket ( const SHBPacket other)

SHBPacket SHBPacket copy constructor.

Parameters
otherThe SHBPacket to copy.

Definition at line 14 of file SHBPacket.cpp.

References m_reserved, m_soPv, and soPv().

Here is the call graph for this function:

◆ ~SHBPacket()

SHBPacket::~SHBPacket ( )

~SHBPacket SHBPacket destructor.

Definition at line 21 of file SHBPacket.cpp.

Member Function Documentation

◆ extract()

quint64 SHBPacket::extract ( uchar *  packet)

extract Extract GBC from packet.

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

Definition at line 25 of file SHBPacket.cpp.

References LongPositionVector::extract(), get_UINT32(), m_reserved, and m_soPv.

Referenced by GeoNet::shbPacketProcessing().

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

◆ setSoPv()

void SHBPacket::setSoPv ( LongPositionVector  lpv)
inline

setSoPv SHB SO PV setter.

Parameters
lpvThe new SO PV.

Definition at line 71 of file SHBPacket.h.

References m_soPv.

Referenced by BroadcastForwardingPacketEntry::updateSourcePacketSoPv().

Here is the caller graph for this function:

◆ soPv()

LongPositionVector SHBPacket::soPv ( ) const
inline

soPv SHB SO PV getter.

Returns
The SHB SO PV.

Definition at line 66 of file SHBPacket.h.

References m_soPv.

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

Here is the caller graph for this function:

◆ toHex()

QByteArray SHBPacket::toHex ( )

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

Returns
The created QByteArray.

Definition at line 35 of file SHBPacket.cpp.

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

Here is the call graph for this function:

Member Data Documentation

◆ m_reserved

quint32 SHBPacket::m_reserved
private

SHB reserved field.

Definition at line 75 of file SHBPacket.h.

Referenced by extract(), SHBPacket(), and toHex().

◆ m_soPv

LongPositionVector SHBPacket::m_soPv
private

SHB SO PV.

Definition at line 74 of file SHBPacket.h.

Referenced by extract(), setSoPv(), SHBPacket(), soPv(), and toHex().


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