ITS
|
#include <BeaconPacket.h>
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 |
Definition at line 16 of file BeaconPacket.h.
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.
BeaconPacket::BeaconPacket | ( | ) |
BeaconPacket BeaconPacket constructor.
Definition at line 3 of file BeaconPacket.cpp.
BeaconPacket::BeaconPacket | ( | LongPositionVector | lpv | ) |
BeaconPacket BeaconPacket initialization constructor.
lpv | LPV of the Beacon. |
Definition at line 8 of file BeaconPacket.cpp.
References m_soPv.
BeaconPacket::BeaconPacket | ( | const BeaconPacket & | other | ) |
BeaconPacket BeaconPacket copy constructor.
other | The BeaconPacket to copy. |
Definition at line 13 of file BeaconPacket.cpp.
References m_soPv, and soPv().
BeaconPacket::~BeaconPacket | ( | ) |
~BeaconPacket BeaconPacket destructor.
Definition at line 19 of file BeaconPacket.cpp.
quint64 BeaconPacket::extract | ( | uchar * | packet | ) |
extract Extract Beacon from packet.
packet | The packet to extract. |
Definition at line 23 of file BeaconPacket.cpp.
References LongPositionVector::extract(), and m_soPv.
Referenced by GeoNet::beaconPacketProcessing().
|
inline |
soPv SO PV getter.
Definition at line 63 of file BeaconPacket.h.
References m_soPv.
Referenced by HistoryPacketBuffer::addPacket(), BeaconPacket(), GeoNet::beaconPacketProcessing(), HistoryPacketBuffer::isDuplicateTimestamp(), and PacketBuffersEntry::operator==().
QByteArray BeaconPacket::toHex | ( | ) |
toHex Create a QByteArray containing the hexadecimal format of the BeaconPacket.
Definition at line 28 of file BeaconPacket.cpp.
References LongPositionVector::helper_size, m_soPv, and LongPositionVector::toHex().
|
private |
The SO PV.
Definition at line 65 of file BeaconPacket.h.
Referenced by BeaconPacket(), extract(), soPv(), and toHex().