ITS
BeaconPacket.cpp
Go to the documentation of this file.
1 #include "BeaconPacket.h"
2 
4 {
5 
6 }
7 
9 {
10  m_soPv = lpv;
11 }
12 
14 {
15  this->m_soPv = other.soPv();
16 }
17 
18 
20 {
21 }
22 
23 quint64 BeaconPacket::extract(uchar* packet)
24 {
25  return m_soPv.extract(packet);
26 }
27 
28 QByteArray BeaconPacket::toHex()
29 {
30  QByteArray hex;
31  QDataStream ds(&hex, QIODevice::WriteOnly);
32 
33  ds.writeRawData(m_soPv.toHex().data(), LongPositionVector::helper_size);
34 
35  return hex;
36 }
~BeaconPacket()
~BeaconPacket BeaconPacket destructor.
Beacon packet structure.
BeaconPacket()
BeaconPacket BeaconPacket constructor.
Definition: BeaconPacket.cpp:3
quint64 extract(uchar *packet)
extract Fill the LongPositionVector with values contained in the packet
QByteArray toHex()
toHex Create a QByteArray containing the hexadecimal format of the BeaconPacket.
quint64 extract(uchar *packet)
extract Extract Beacon from packet.
QByteArray toHex()
toHex Create a QByteArray containing the hexadecimal format of the LongPositionVector.
LongPositionVector m_soPv
Definition: BeaconPacket.h:65
LongPositionVector soPv() const
soPv SO PV getter.
Definition: BeaconPacket.h:63