ITS
DestinationAreaData.h
Go to the documentation of this file.
1 
5 #ifndef DESTINATIONAREADATA_H
6 #define DESTINATIONAREADATA_H
7 
8 #include <QByteArray>
9 #include <constantes.h>
10 #include <apiData.h>
11 #include <ReferencePosition.h>
12 
14 {
15 public:
19  enum e_shape
20  {
24  };
25 
35  DestinationAreaData(char *data, int *offset);
45  DestinationAreaData(e_shape shape, qint32 lat, qint32 lon, quint16 a, quint16 b, quint16 angle);
51 
52  /* Getters */
57  qint32 geoAreaPosLatitude() const{return m_geoAreaPosLatitude;}
67  quint16 distanceA() const{return m_distanceA;}
72  quint16 distanceB() const{return m_distanceB;}
77  quint16 angle() const{return m_angle;}
82  e_shape shape() const{return m_shape;}
83 
84  /* Setters */
99  void setDistanceA(quint16 d){m_distanceA = d;}
104  void setDistanceB(quint16 d){m_distanceB = d;}
109  void setAngle(quint16 a){m_angle = a;}
114  void setShape(e_shape s){m_shape = s;}
115 
120  QByteArray toBin();
125  QString toString();
126 
127 private:
130  quint16 m_distanceA;
131  quint16 m_distanceB;
132  quint16 m_angle;
134 };
135 
136 #endif // DESTINATIONAREADATA_H
QString toString()
toString Human readable encoder of the destination area.
DestinationAreaData()
DestinationAreaData DestinationAreaData constructor.
void setShape(e_shape s)
setShape Shape of the area setter.
void setDistanceB(quint16 d)
setDistanceB Semi major axis of the area setter.
void setGeoAreaPosLatitude(qint32 l)
setGeoAreaPosLatitude Geo area position latitude setter.
e_shape shape() const
shape Shape of the area getter.
qint32 geoAreaPosLongitude() const
geoAreaPosLongitude Geo area position longitude getter.
quint16 distanceB() const
distanceB Semi major axis of the area getter.
Constantes used everywhere.
e_shape
The e_shape enum defines the shapes type.
Definition: constantes.h:54
e_shape
The e_shape enum defines the shape types.
quint16 angle() const
angle Heading to the North of the area getter.
quint16 distanceA() const
distanceA Semi minor axis of the area getter.
void setGeoAreaPosLongitude(qint32 l)
setGeoAreaPosLongitude Geo area position longitude setter.
qint32 geoAreaPosLatitude() const
geoAreaPosLatitude Geo area position latitude getter.
void setAngle(quint16 a)
setAngle Heading to the North of the area setter.
void setDistanceA(quint16 d)
setDistanceA Semi minor axis of the area setter.
QByteArray toBin()
toBin Byte array encoder of the destination area.
API used for C++ style data.