ITS
|
#include <DestinationArea.h>
Public Types | |
enum | e_helper { helper_size = 16 } |
The e_helper enum is used to help to have sizes. More... | |
Public Member Functions | |
DestinationArea () | |
DestinationArea DestinationArea constructor. More... | |
DestinationArea (qint32 geoAreaPosLatitude, qint32 geoAreaPosLongitude, quint16 distanceA, quint16 distanceB, quint16 angle) | |
DestinationArea DestinationArea initialization constructor. More... | |
DestinationArea (const DestinationArea &other) | |
DestinationArea DestinationArea copy constructor. More... | |
DestinationArea (sniff_destinationArea_t da) | |
DestinationArea DestinationArea initialization constructor. More... | |
~DestinationArea () | |
quint64 | extract (uchar *packet) |
extract Extract DestinationArea from byte array. More... | |
QByteArray | toHex () |
toHex Create a QByteArray containing the hexadecimal format of the DestinationArea. More... | |
qint32 | geoAreaPosLatitude () const |
geoAreaPosLatitude Geo area position latitude field getter. More... | |
qint32 | geoAreaPosLongitude () const |
geoAreaPosLatitude Geo area position longitude field getter. More... | |
quint16 | distanceA () const |
geoAreaPosLatitude Distance A field getter. More... | |
quint16 | distanceB () const |
geoAreaPosLatitude Distance B field getter. More... | |
quint16 | angle () const |
geoAreaPosLatitude Angle field getter. More... | |
void | setDistanceA (quint16 a) |
setDistanceA Distance A field setter. More... | |
Private Attributes | |
qint32 | m_geoAreaPosLatitude |
qint32 | m_geoAreaPosLongitude |
quint16 | m_distanceA |
quint16 | m_distanceB |
quint16 | m_angle |
quint16 | m_reserved |
Definition at line 35 of file DestinationArea.h.
The e_helper enum is used to help to have sizes.
Enumerator | |
---|---|
helper_size | Size of the destination area in bytes. |
Definition at line 41 of file DestinationArea.h.
DestinationArea::DestinationArea | ( | ) |
DestinationArea DestinationArea constructor.
Definition at line 3 of file DestinationArea.cpp.
References m_angle, m_distanceA, m_distanceB, m_geoAreaPosLatitude, m_geoAreaPosLongitude, and m_reserved.
DestinationArea::DestinationArea | ( | qint32 | geoAreaPosLatitude, |
qint32 | geoAreaPosLongitude, | ||
quint16 | distanceA, | ||
quint16 | distanceB, | ||
quint16 | angle | ||
) |
DestinationArea DestinationArea initialization constructor.
geoAreaPosLatitude | Geo area position latitude field. |
geoAreaPosLongitude | Geo area position longitude field. |
distanceA | Distance A field. |
distanceB | Distance B field. |
angle | Angle field. |
Definition at line 13 of file DestinationArea.cpp.
References angle(), distanceA(), distanceB(), geoAreaPosLatitude(), geoAreaPosLongitude(), m_angle, m_distanceA, m_distanceB, m_geoAreaPosLatitude, m_geoAreaPosLongitude, and m_reserved.
DestinationArea::DestinationArea | ( | const DestinationArea & | other | ) |
DestinationArea DestinationArea copy constructor.
other | The DestinationArea to copy. |
Definition at line 23 of file DestinationArea.cpp.
References m_angle, m_distanceA, m_distanceB, m_geoAreaPosLatitude, m_geoAreaPosLongitude, and m_reserved.
DestinationArea::DestinationArea | ( | sniff_destinationArea_t | da | ) |
DestinationArea DestinationArea initialization constructor.
da | The C style of the DestinationArea. |
Definition at line 33 of file DestinationArea.cpp.
References sniff_destinationArea_s::angle, sniff_destinationArea_s::distanceA, sniff_destinationArea_s::distanceB, sniff_destinationArea_s::geoAreaPosLatitude, sniff_destinationArea_s::geoAreaPosLongitude, m_angle, m_distanceA, m_distanceB, m_geoAreaPosLatitude, and m_geoAreaPosLongitude.
DestinationArea::~DestinationArea | ( | ) |
~DestinationArea DestinationArea destructor.
Definition at line 42 of file DestinationArea.cpp.
|
inline |
geoAreaPosLatitude Angle field getter.
Definition at line 112 of file DestinationArea.h.
References m_angle.
Referenced by GeoNet::advancedForwarding(), GeoNet::contentionBasedForwardingAlgorithm(), DestinationArea(), and GeoNet::simpleForwardingAlgorithm().
|
inline |
geoAreaPosLatitude Distance A field getter.
Definition at line 102 of file DestinationArea.h.
References m_distanceA.
Referenced by GeoNet::advancedForwarding(), GeoNet::checkBCFPB(), GeoNet::contentionBasedForwardingAlgorithm(), DestinationArea(), and GeoNet::simpleForwardingAlgorithm().
|
inline |
geoAreaPosLatitude Distance B field getter.
Definition at line 107 of file DestinationArea.h.
References m_distanceB.
Referenced by GeoNet::advancedForwarding(), GeoNet::checkBCFPB(), GeoNet::contentionBasedForwardingAlgorithm(), DestinationArea(), and GeoNet::simpleForwardingAlgorithm().
quint64 DestinationArea::extract | ( | uchar * | packet | ) |
extract Extract DestinationArea from byte array.
packet | The byte array. |
Definition at line 46 of file DestinationArea.cpp.
References get_INT32(), get_UINT16(), m_angle, m_distanceA, m_distanceB, m_geoAreaPosLatitude, m_geoAreaPosLongitude, and m_reserved.
Referenced by GBCPacket::extract().
|
inline |
geoAreaPosLatitude Geo area position latitude field getter.
Definition at line 92 of file DestinationArea.h.
References m_geoAreaPosLatitude.
Referenced by GeoNet::advancedForwarding(), GeoNet::CBFUnicast(), GeoNet::contentionBasedForwardingAlgorithm(), DestinationArea(), GeoNet::greedy(), and GeoNet::simpleForwardingAlgorithm().
|
inline |
geoAreaPosLatitude Geo area position longitude field getter.
Definition at line 97 of file DestinationArea.h.
References m_geoAreaPosLongitude.
Referenced by GeoNet::advancedForwarding(), GeoNet::CBFUnicast(), GeoNet::contentionBasedForwardingAlgorithm(), DestinationArea(), GeoNet::greedy(), and GeoNet::simpleForwardingAlgorithm().
|
inline |
setDistanceA Distance A field setter.
a | The new distance A. |
Definition at line 118 of file DestinationArea.h.
References m_distanceA.
QByteArray DestinationArea::toHex | ( | ) |
toHex Create a QByteArray containing the hexadecimal format of the DestinationArea.
Definition at line 60 of file DestinationArea.cpp.
References m_angle, m_distanceA, m_distanceB, m_geoAreaPosLatitude, m_geoAreaPosLongitude, and m_reserved.
Referenced by GBCPacket::toHex().
|
private |
Angle field.
Definition at line 125 of file DestinationArea.h.
Referenced by angle(), DestinationArea(), extract(), and toHex().
|
private |
Distance A field.
Definition at line 123 of file DestinationArea.h.
Referenced by DestinationArea(), distanceA(), extract(), setDistanceA(), and toHex().
|
private |
Distance B field.
Definition at line 124 of file DestinationArea.h.
Referenced by DestinationArea(), distanceB(), extract(), and toHex().
|
private |
Geo area position longitude field.
Definition at line 121 of file DestinationArea.h.
Referenced by DestinationArea(), extract(), geoAreaPosLatitude(), and toHex().
|
private |
Geo area position longitude field.
Definition at line 122 of file DestinationArea.h.
Referenced by DestinationArea(), extract(), geoAreaPosLongitude(), and toHex().
|
private |
Reserved field.
Definition at line 126 of file DestinationArea.h.
Referenced by DestinationArea(), extract(), and toHex().