|
ITS
|
#include <ShortPositionVector.h>
Public Types | |
| enum | e_helper { helper_size = 20 } |
| The e_helper enum is used to help to have sizes. More... | |
Public Member Functions | |
| ShortPositionVector () | |
| ShortPositionVector Default constructor. More... | |
| ShortPositionVector (GnAddr gnA, quint32 tmstmp, qint32 lat, qint32 lon) | |
| ShortPositionVector Initialization constructor. More... | |
| ShortPositionVector (const ShortPositionVector &other) | |
| ShortPositionVector Copy constructor. More... | |
| quint64 | extract (uchar *packet) |
| extract Fill the ShortPositionVector with values contained in the packet More... | |
| QByteArray | toHex () |
| toHex Create a QByteArray containing the hexadecimal format of the ShortPositionVector. More... | |
| GnAddr | gnAddr () const |
| gnAddr GnAddr field getter More... | |
| quint32 | timestamp () const |
| timestamp Timestamp field getter More... | |
| qint32 | latitude () const |
| latitude Latitude field getter More... | |
| qint32 | longitude () const |
| longitude Longitude field getter More... | |
Private Attributes | |
| GnAddr | m_gnAddr |
| quint32 | m_timestamp |
| qint32 | m_latitude |
| qint32 | m_longitude |
Definition at line 20 of file ShortPositionVector.h.
The e_helper enum is used to help to have sizes.
| Enumerator | |
|---|---|
| helper_size | Size of the SPV. |
Definition at line 26 of file ShortPositionVector.h.
| ShortPositionVector::ShortPositionVector | ( | ) |
ShortPositionVector Default constructor.
Definition at line 3 of file ShortPositionVector.cpp.
References m_gnAddr, m_latitude, m_longitude, and m_timestamp.
| ShortPositionVector::ShortPositionVector | ( | GnAddr | gnA, |
| quint32 | tmstmp, | ||
| qint32 | lat, | ||
| qint32 | lon | ||
| ) |
ShortPositionVector Initialization constructor.
| gnA | GnAddr field. |
| tmstmp | Timestamp field. |
| lat | Latitude field |
| lon | Longitude field |
Definition at line 11 of file ShortPositionVector.cpp.
References m_gnAddr, m_latitude, m_longitude, and m_timestamp.
| ShortPositionVector::ShortPositionVector | ( | const ShortPositionVector & | other | ) |
ShortPositionVector Copy constructor.
| other | The ShortPositionVector to copy. |
Definition at line 20 of file ShortPositionVector.cpp.
References gnAddr(), latitude(), longitude(), m_gnAddr, m_latitude, m_longitude, m_timestamp, and timestamp().
| quint64 ShortPositionVector::extract | ( | uchar * | packet | ) |
extract Fill the ShortPositionVector with values contained in the packet
| packet | The packet that contains the ShortPositionVector data |
Definition at line 28 of file ShortPositionVector.cpp.
References GnAddr::extract(), get_INT32(), get_UINT32(), m_gnAddr, m_latitude, m_longitude, and m_timestamp.
Referenced by GUCPacket::extract().
|
inline |
gnAddr GnAddr field getter
Definition at line 68 of file ShortPositionVector.h.
References m_gnAddr.
Referenced by LongPositionVector::LongPositionVector(), GeoNet::LSReplyPacketProcessing(), and ShortPositionVector().
|
inline |
latitude Latitude field getter
Definition at line 78 of file ShortPositionVector.h.
References m_latitude.
Referenced by GeoNet::CBFUnicast(), GeoNet::greedy(), LongPositionVector::LongPositionVector(), and ShortPositionVector().
|
inline |
longitude Longitude field getter
Definition at line 83 of file ShortPositionVector.h.
References m_longitude.
Referenced by GeoNet::CBFUnicast(), GeoNet::greedy(), LongPositionVector::LongPositionVector(), and ShortPositionVector().
|
inline |
timestamp Timestamp field getter
Definition at line 73 of file ShortPositionVector.h.
References m_timestamp.
Referenced by LongPositionVector::LongPositionVector(), and ShortPositionVector().
| QByteArray ShortPositionVector::toHex | ( | ) |
toHex Create a QByteArray containing the hexadecimal format of the ShortPositionVector.
Definition at line 40 of file ShortPositionVector.cpp.
References GnAddr::helper_size, m_gnAddr, m_latitude, m_longitude, m_timestamp, and GnAddr::toHex().
Referenced by GUCPacket::toHex().
|
private |
GN_ADDR field.
Definition at line 86 of file ShortPositionVector.h.
Referenced by extract(), gnAddr(), ShortPositionVector(), and toHex().
|
private |
Latitude field.
Definition at line 88 of file ShortPositionVector.h.
Referenced by extract(), latitude(), ShortPositionVector(), and toHex().
|
private |
Longitude field.
Definition at line 89 of file ShortPositionVector.h.
Referenced by extract(), longitude(), ShortPositionVector(), and toHex().
|
private |
Timestamp field (Timestamp % 2³²).
Definition at line 87 of file ShortPositionVector.h.
Referenced by extract(), ShortPositionVector(), timestamp(), and toHex().