ITS
ShortPositionVector Class Reference

#include <ShortPositionVector.h>

Collaboration diagram for ShortPositionVector:
[legend]

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
 

Detailed Description

Definition at line 20 of file ShortPositionVector.h.

Member Enumeration Documentation

◆ e_helper

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.

Constructor & Destructor Documentation

◆ ShortPositionVector() [1/3]

ShortPositionVector::ShortPositionVector ( )

ShortPositionVector Default constructor.

Definition at line 3 of file ShortPositionVector.cpp.

References m_gnAddr, m_latitude, m_longitude, and m_timestamp.

◆ ShortPositionVector() [2/3]

ShortPositionVector::ShortPositionVector ( GnAddr  gnA,
quint32  tmstmp,
qint32  lat,
qint32  lon 
)

ShortPositionVector Initialization constructor.

Parameters
gnAGnAddr field.
tmstmpTimestamp field.
latLatitude field
lonLongitude field

Definition at line 11 of file ShortPositionVector.cpp.

References m_gnAddr, m_latitude, m_longitude, and m_timestamp.

◆ ShortPositionVector() [3/3]

ShortPositionVector::ShortPositionVector ( const ShortPositionVector other)

ShortPositionVector Copy constructor.

Parameters
otherThe 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().

Here is the call graph for this function:

Member Function Documentation

◆ extract()

quint64 ShortPositionVector::extract ( uchar *  packet)

extract Fill the ShortPositionVector with values contained in the packet

Parameters
packetThe 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().

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

◆ gnAddr()

GnAddr ShortPositionVector::gnAddr ( ) const
inline

gnAddr GnAddr field getter

Returns
GnAddr field

Definition at line 68 of file ShortPositionVector.h.

References m_gnAddr.

Referenced by LongPositionVector::LongPositionVector(), GeoNet::LSReplyPacketProcessing(), and ShortPositionVector().

Here is the caller graph for this function:

◆ latitude()

qint32 ShortPositionVector::latitude ( ) const
inline

latitude Latitude field getter

Returns
Latitude field

Definition at line 78 of file ShortPositionVector.h.

References m_latitude.

Referenced by GeoNet::CBFUnicast(), GeoNet::greedy(), LongPositionVector::LongPositionVector(), and ShortPositionVector().

Here is the caller graph for this function:

◆ longitude()

qint32 ShortPositionVector::longitude ( ) const
inline

longitude Longitude field getter

Returns
Longitude field

Definition at line 83 of file ShortPositionVector.h.

References m_longitude.

Referenced by GeoNet::CBFUnicast(), GeoNet::greedy(), LongPositionVector::LongPositionVector(), and ShortPositionVector().

Here is the caller graph for this function:

◆ timestamp()

quint32 ShortPositionVector::timestamp ( ) const
inline

timestamp Timestamp field getter

Returns
Timestamp field

Definition at line 73 of file ShortPositionVector.h.

References m_timestamp.

Referenced by LongPositionVector::LongPositionVector(), and ShortPositionVector().

Here is the caller graph for this function:

◆ toHex()

QByteArray ShortPositionVector::toHex ( )

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

Returns
The created QByteArray.

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().

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

Member Data Documentation

◆ m_gnAddr

GnAddr ShortPositionVector::m_gnAddr
private

GN_ADDR field.

Definition at line 86 of file ShortPositionVector.h.

Referenced by extract(), gnAddr(), ShortPositionVector(), and toHex().

◆ m_latitude

qint32 ShortPositionVector::m_latitude
private

Latitude field.

Definition at line 88 of file ShortPositionVector.h.

Referenced by extract(), latitude(), ShortPositionVector(), and toHex().

◆ m_longitude

qint32 ShortPositionVector::m_longitude
private

Longitude field.

Definition at line 89 of file ShortPositionVector.h.

Referenced by extract(), longitude(), ShortPositionVector(), and toHex().

◆ m_timestamp

quint32 ShortPositionVector::m_timestamp
private

Timestamp field (Timestamp % 2³²).

Definition at line 87 of file ShortPositionVector.h.

Referenced by extract(), ShortPositionVector(), timestamp(), and toHex().


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