ITS
BeaconPacket Class Reference

#include <BeaconPacket.h>

Collaboration diagram for BeaconPacket:
[legend]

Public Types

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

Public Member Functions

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

Private Attributes

LongPositionVector m_soPv
 

Detailed Description

Definition at line 16 of file BeaconPacket.h.

Member Enumeration Documentation

◆ e_helper

The e_helper enum is used to help to have sizes.

Enumerator
helper_size 

Size of the Beacon in bytes.

Definition at line 22 of file BeaconPacket.h.

Constructor & Destructor Documentation

◆ BeaconPacket() [1/3]

BeaconPacket::BeaconPacket ( )

BeaconPacket BeaconPacket constructor.

Definition at line 3 of file BeaconPacket.cpp.

◆ BeaconPacket() [2/3]

BeaconPacket::BeaconPacket ( LongPositionVector  lpv)

BeaconPacket BeaconPacket initialization constructor.

Parameters
lpvLPV of the Beacon.

Definition at line 8 of file BeaconPacket.cpp.

References m_soPv.

◆ BeaconPacket() [3/3]

BeaconPacket::BeaconPacket ( const BeaconPacket other)

BeaconPacket BeaconPacket copy constructor.

Parameters
otherThe BeaconPacket to copy.

Definition at line 13 of file BeaconPacket.cpp.

References m_soPv, and soPv().

Here is the call graph for this function:

◆ ~BeaconPacket()

BeaconPacket::~BeaconPacket ( )

~BeaconPacket BeaconPacket destructor.

Definition at line 19 of file BeaconPacket.cpp.

Member Function Documentation

◆ extract()

quint64 BeaconPacket::extract ( uchar *  packet)

extract Extract Beacon from packet.

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

Definition at line 23 of file BeaconPacket.cpp.

References LongPositionVector::extract(), and m_soPv.

Referenced by GeoNet::beaconPacketProcessing().

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

◆ soPv()

LongPositionVector BeaconPacket::soPv ( ) const
inline

soPv SO PV getter.

Returns
The SO PV.

Definition at line 63 of file BeaconPacket.h.

References m_soPv.

Referenced by HistoryPacketBuffer::addPacket(), BeaconPacket(), GeoNet::beaconPacketProcessing(), HistoryPacketBuffer::isDuplicateTimestamp(), and PacketBuffersEntry::operator==().

Here is the caller graph for this function:

◆ toHex()

QByteArray BeaconPacket::toHex ( )

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

Returns
The created QByteArray.

Definition at line 28 of file BeaconPacket.cpp.

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

Here is the call graph for this function:

Member Data Documentation

◆ m_soPv

LongPositionVector BeaconPacket::m_soPv
private

The SO PV.

Definition at line 65 of file BeaconPacket.h.

Referenced by BeaconPacket(), extract(), soPv(), and toHex().


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