ITS
|
#include <GnAddr.h>
Public Types | |
enum | e_helper { helper_size = 8 } |
The e_helper enum is used to help to have sizes. More... | |
Public Member Functions | |
GnAddr () | |
GnAddr Default constructor. More... | |
GnAddr (quint8 manually, quint8 stationType, quint16 stationCountryCode, quint8 *mid) | |
GnAddr Initialization constructor. More... | |
GnAddr (quint16 mStationTypeStationCountryCode, quint8 *mid) | |
GnAddr Initialization constructor. More... | |
GnAddr (sniff_gnAddr_t gnAddr) | |
GnAddr Initialization constructor. More... | |
GnAddr (QByteArray gnAddr) | |
GnAddr Initialization constructor. More... | |
GnAddr (const GnAddr &other) | |
GnAddr Copy constructor. More... | |
quint64 | extract (uchar *packet) |
extract Fill the GnAddr with values contained in the packet. More... | |
bool | operator== (const GnAddr &g2) const |
operator == Overload of the == operator. More... | |
QByteArray | toHex () |
toHex Create a QByteArray containing the hexadecimal format of the GnAddr. More... | |
quint8 | manually () const |
manually Manually field getter (1 bit). More... | |
quint8 | stationType () const |
stationType Station Type field getter (5 bits). More... | |
quint16 | stationCountryCode () const |
stationCountryCode Station Country Code field getter (10 bits). More... | |
quint16 | MStationTypeCountryCode () const |
MStationTypeCountryCode Manually StationType CountryCode field getter. More... | |
quint8 * | mid () |
mid MID field getter. More... | |
quint8 | mid (int i) const |
mid MID specific value field getter. More... | |
Private Attributes | |
quint16 | m_StationType_StationCountryCode |
setMID More... | |
quint8 | m_mid [6] |
enum GnAddr::e_helper |
GnAddr::GnAddr | ( | ) |
GnAddr Default constructor.
Definition at line 3 of file GnAddr.cpp.
References m_mid, and m_StationType_StationCountryCode.
GnAddr::GnAddr | ( | quint8 | manually, |
quint8 | stationType, | ||
quint16 | stationCountryCode, | ||
quint8 * | mid | ||
) |
GnAddr Initialization constructor.
manually | Manually field. |
stationType | Station Type field. |
stationCountryCode | Station Country Code field. |
mid | MID field. |
Definition at line 10 of file GnAddr.cpp.
References m_mid, m_StationType_StationCountryCode, manually(), mid(), stationCountryCode(), and stationType().
GnAddr::GnAddr | ( | quint16 | mStationTypeStationCountryCode, |
quint8 * | mid | ||
) |
GnAddr Initialization constructor.
mStationTypeStationCountryCode | 2 first bytes of the GnAddr (Manually + Station Type + Station Country Code). |
mid | MID field. |
Definition at line 19 of file GnAddr.cpp.
References m_mid, m_StationType_StationCountryCode, and mid().
GnAddr::GnAddr | ( | sniff_gnAddr_t | gnAddr | ) |
GnAddr Initialization constructor.
sniff_gnAddr_t | the sniff structure for GnAddr. |
Definition at line 26 of file GnAddr.cpp.
References m_mid, m_StationType_StationCountryCode, sniff_gnAddr_s::mid, and sniff_gnAddr_s::stationType_StationCountryCode.
GnAddr::GnAddr | ( | QByteArray | gnAddr | ) |
GnAddr Initialization constructor.
gnAddr | The GnAddr in hex. |
Definition at line 33 of file GnAddr.cpp.
References extract().
GnAddr::GnAddr | ( | const GnAddr & | other | ) |
GnAddr Copy constructor.
other | The GnAddr to copy. |
Definition at line 38 of file GnAddr.cpp.
References m_mid, and m_StationType_StationCountryCode.
quint64 GnAddr::extract | ( | uchar * | packet | ) |
extract Fill the GnAddr with values contained in the packet.
packet | The packet that contains the GnAddr data. |
Definition at line 55 of file GnAddr.cpp.
References get_UINT16(), m_mid, and m_StationType_StationCountryCode.
Referenced by LSRequestPacket::extract(), ShortPositionVector::extract(), LongPositionVector::extract(), and GnAddr().
|
inline |
manually Manually field getter (1 bit).
Definition at line 101 of file GnAddr.h.
References m_StationType_StationCountryCode.
Referenced by GnAddr().
|
inline |
mid MID field getter.
Definition at line 121 of file GnAddr.h.
References m_mid.
Referenced by GeoNet::advancedForwarding(), GeoNet::beaconPacketProcessing(), GeoNet::contentionBasedForwardingAlgorithm(), GeoNet::gacPacketProcessing(), GeoNet::gbcPacketProcessing(), GnAddr(), GeoNet::gucPacketProcessing(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), LocationTableEntry::print(), GeoNet::sendGAC(), GeoNet::sendGBC(), CBFPacketEntry::sendPacket(), GeoNet::shbPacketProcessing(), GeoNet::simpleForwardingAlgorithm(), and GeoNet::tsbPacketProcessing().
|
inline |
|
inline |
MStationTypeCountryCode Manually StationType CountryCode field getter.
Definition at line 116 of file GnAddr.h.
References m_StationType_StationCountryCode.
Referenced by GeoNet::beaconPacketProcessing(), GeoNet::gacPacketProcessing(), GeoNet::gbcPacketProcessing(), GeoNet::gucPacketProcessing(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), operator==(), LocationTableEntry::print(), GeoNet::shbPacketProcessing(), and GeoNet::tsbPacketProcessing().
bool GnAddr::operator== | ( | const GnAddr & | g2 | ) | const |
operator == Overload of the == operator.
Definition at line 45 of file GnAddr.cpp.
References m_mid, and MStationTypeCountryCode().
|
inline |
stationCountryCode Station Country Code field getter (10 bits).
Definition at line 111 of file GnAddr.h.
References m_StationType_StationCountryCode.
Referenced by GnAddr().
|
inline |
stationType Station Type field getter (5 bits).
Definition at line 106 of file GnAddr.h.
References m_StationType_StationCountryCode.
Referenced by GeoNet::beaconPacketProcessing(), GnAddr(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), and GeoNet::shbPacketProcessing().
QByteArray GnAddr::toHex | ( | ) |
toHex Create a QByteArray containing the hexadecimal format of the GnAddr.
Definition at line 69 of file GnAddr.cpp.
References m_mid, and m_StationType_StationCountryCode.
Referenced by GeoNet::advancedForwarding(), GeoNet::beaconPacketProcessing(), GeoNet::CBFUnicast(), GeoNet::contentionBasedForwardingAlgorithm(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), GeoNet::lsRetransmit(), GeoNet::sendGUC(), GeoNet::sendLsRequest(), CBFPacketBuffer::sendPacket(), GeoNet::shbPacketProcessing(), CBFPacketBuffer::stopPacket(), ShortPositionVector::toHex(), LSRequestPacket::toHex(), and LongPositionVector::toHex().
|
private |
|
private |
setMID
mManually | (1 bit) + Station Type (5 bits) + Station Country Code (10 bits). |
Definition at line 137 of file GnAddr.h.
Referenced by extract(), GnAddr(), manually(), MStationTypeCountryCode(), stationCountryCode(), stationType(), and toHex().