ITS
LSRequestPacket Class Reference

#include <LSRequestPacket.h>

Inheritance diagram for LSRequestPacket:
[legend]
Collaboration diagram for LSRequestPacket:
[legend]

Public Types

enum  e_helper { helper_size = 4 + LongPositionVector::helper_size + 2 }
 The e_helper enum is used to help to have sizes. More...
 
- Public Types inherited from TSBPacket
enum  e_helper { helper_size = 4 + LongPositionVector::helper_size }
 The e_helper enum is used to help to have sizes. More...
 

Public Member Functions

 LSRequestPacket ()
 LSRequestPacket LSRequestPacket constructor. More...
 
 LSRequestPacket (quint16 sequenceNumber, LongPositionVector lpv, GnAddr destination)
 LSRequestPacket LSRequestPacket initialization constructor. More...
 
 LSRequestPacket (const LSRequestPacket &other)
 LSRequestPacket LSRequestPacket copy constructor. More...
 
 ~LSRequestPacket ()
 ~LSRequestPacket LSRequestPacket destructor. More...
 
quint64 extract (uchar *packet)
 extract Extract GBC from packet. More...
 
QByteArray toHex ()
 toHex Create a QByteArray containing the hexadecimal format of the GBCPacket. More...
 
GnAddr destination ()
 destination Request GN_ADDR getter. More...
 
- Public Member Functions inherited from TSBPacket
 TSBPacket ()
 TSBPacket TSBPacket constructor. More...
 
 TSBPacket (quint16 sequenceNumber, LongPositionVector lpv)
 TSBPacket TSBPacket initialization constructor. More...
 
 TSBPacket (const TSBPacket &other)
 TSBPacket TSBPacket copy constructor. More...
 
 ~TSBPacket ()
 ~TSBPacket The TSBPacket destructor. More...
 
quint64 extract (uchar *packet)
 extract Extract GBC from packet. More...
 
QByteArray toHex ()
 toHex Create a QByteArray containing the hexadecimal format of the GBCPacket. More...
 
quint16 sequenceNumber () const
 sequenceNumber TSB sequence number getter. More...
 
LongPositionVector soPv () const
 soPv TSB SO PV getter. More...
 
void setSoPv (LongPositionVector lpv)
 setSoPv TSB SO PV setter. More...
 

Private Attributes

GnAddr m_destination
 

Additional Inherited Members

- Protected Attributes inherited from TSBPacket
quint16 m_sequenceNumber
 
quint16 m_reserved
 
LongPositionVector m_soPv
 

Detailed Description

Definition at line 19 of file LSRequestPacket.h.

Member Enumeration Documentation

◆ e_helper

The e_helper enum is used to help to have sizes.

Enumerator
helper_size 

Size of the LSRequest in bytes.

Definition at line 25 of file LSRequestPacket.h.

Constructor & Destructor Documentation

◆ LSRequestPacket() [1/3]

LSRequestPacket::LSRequestPacket ( )

LSRequestPacket LSRequestPacket constructor.

Definition at line 3 of file LSRequestPacket.cpp.

◆ LSRequestPacket() [2/3]

LSRequestPacket::LSRequestPacket ( quint16  sequenceNumber,
LongPositionVector  lpv,
GnAddr  destination 
)

LSRequestPacket LSRequestPacket initialization constructor.

Parameters
sequenceNumberThe LS Request sequence number.
lpvThe LS Request SO PV.
destinationThe LS Request requested GN_ADDR.

Definition at line 7 of file LSRequestPacket.cpp.

References destination(), m_destination, TSBPacket::m_reserved, TSBPacket::m_sequenceNumber, TSBPacket::m_soPv, and TSBPacket::sequenceNumber().

Here is the call graph for this function:

◆ LSRequestPacket() [3/3]

LSRequestPacket::LSRequestPacket ( const LSRequestPacket other)

LSRequestPacket LSRequestPacket copy constructor.

Parameters
otherThe LSRequestPacket to copy.

Definition at line 15 of file LSRequestPacket.cpp.

References m_destination, TSBPacket::m_reserved, TSBPacket::m_sequenceNumber, and TSBPacket::m_soPv.

◆ ~LSRequestPacket()

LSRequestPacket::~LSRequestPacket ( )

~LSRequestPacket LSRequestPacket destructor.

Definition at line 23 of file LSRequestPacket.cpp.

Member Function Documentation

◆ destination()

GnAddr LSRequestPacket::destination ( )
inline

destination Request GN_ADDR getter.

Returns
The requested GN_ADDR.

Definition at line 68 of file LSRequestPacket.h.

References m_destination.

Referenced by LSRequestPacket(), and GeoNet::LSRequestPacketProcessing().

Here is the caller graph for this function:

◆ extract()

quint64 LSRequestPacket::extract ( uchar *  packet)

extract Extract GBC from packet.

Parameters
packetThe packet to extract.
Returns
The number of bytes read.

Definition at line 27 of file LSRequestPacket.cpp.

References GnAddr::extract(), LongPositionVector::extract(), get_UINT16(), m_destination, TSBPacket::m_reserved, TSBPacket::m_sequenceNumber, and TSBPacket::m_soPv.

Referenced by GeoNet::LSRequestPacketProcessing().

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

◆ toHex()

QByteArray LSRequestPacket::toHex ( )

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

Returns
The created QByteArray.

Definition at line 39 of file LSRequestPacket.cpp.

References LongPositionVector::helper_size, GnAddr::helper_size, m_destination, TSBPacket::m_reserved, TSBPacket::m_sequenceNumber, TSBPacket::m_soPv, LongPositionVector::toHex(), and GnAddr::toHex().

Referenced by GeoNet::LSRequestPacketProcessing().

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

Member Data Documentation

◆ m_destination

GnAddr LSRequestPacket::m_destination
private

The requested GN_ADDR.

Definition at line 71 of file LSRequestPacket.h.

Referenced by destination(), extract(), LSRequestPacket(), and toHex().


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