ITS
ShortPositionVector.h
Go to the documentation of this file.
1 
13 #ifndef ShortPositionVector_H
14 #define ShortPositionVector_H
15 
16 #include <GnAddr.h>
17 #include <QByteArray>
18 #include <QDataStream>
19 
21 {
22 public:
26  enum e_helper
27  {
29  };
30 
31  /* Constructors */
43  ShortPositionVector(GnAddr gnA, quint32 tmstmp, qint32 lat, qint32 lon);
49 
50  /* API */
55  quint64 extract(uchar* packet);
56 
61  QByteArray toHex();
62 
63  /* Getters */
68  GnAddr gnAddr() const {return m_gnAddr;}
73  quint32 timestamp() const {return m_timestamp;}
78  qint32 latitude() const {return m_latitude;}
83  qint32 longitude() const {return m_longitude;}
84 
85 private:
87  quint32 m_timestamp;
88  qint32 m_latitude;
89  qint32 m_longitude;
90 };
91 
92 #endif // _ShortPositionVector_H_
GeoNet Address class.
quint64 extract(uchar *packet)
extract Fill the ShortPositionVector with values contained in the packet
ShortPositionVector()
ShortPositionVector Default constructor.
QByteArray toHex()
toHex Create a QByteArray containing the hexadecimal format of the ShortPositionVector.
qint32 latitude() const
latitude Latitude field getter
quint32 timestamp() const
timestamp Timestamp field getter
e_helper
The e_helper enum is used to help to have sizes.
Definition: GnAddr.h:28
qint32 longitude() const
longitude Longitude field getter
GnAddr gnAddr() const
gnAddr GnAddr field getter