ITS
TSBPacket.h
Go to the documentation of this file.
1 
12 #ifndef TSBPacket_H
13 #define TSBPacket_H
14 
15 #include <QObject>
16 #include <constantes.h>
17 #include <CommonHeader.h>
18 #include <LongPositionVector.h>
19 
20 class TSBPacket
21 {
22 public:
26  enum e_helper
27  {
29  };
30 
34  TSBPacket();
45  TSBPacket(const TSBPacket& other);
49  ~TSBPacket();
55  quint64 extract(uchar* packet);
56 
57  /* API */
62  QByteArray toHex();
63 
68  quint16 sequenceNumber() const {return m_sequenceNumber;}
73  LongPositionVector soPv() const {return m_soPv;}
78  void setSoPv(LongPositionVector lpv) {m_soPv = lpv;}
79 
80 protected:
82  quint16 m_reserved;
84 };
85 
86 #endif // TSBPacket_H
QByteArray toHex()
toHex Create a QByteArray containing the hexadecimal format of the GBCPacket.
Definition: TSBPacket.cpp:37
TSBPacket()
TSBPacket TSBPacket constructor.
Definition: TSBPacket.cpp:3
LongPositionVector m_soPv
Definition: TSBPacket.h:83
quint64 extract(uchar *packet)
extract Extract GBC from packet.
Definition: TSBPacket.cpp:26
Common Header structure.
LongPositionVector soPv() const
soPv TSB SO PV getter.
Definition: TSBPacket.h:73
void setSoPv(LongPositionVector lpv)
setSoPv TSB SO PV setter.
Definition: TSBPacket.h:78
Constantes used everywhere.
quint16 m_reserved
Definition: TSBPacket.h:82
quint16 sequenceNumber() const
sequenceNumber TSB sequence number getter.
Definition: TSBPacket.h:68
LPV definition.
~TSBPacket()
~TSBPacket The TSBPacket destructor.
Definition: TSBPacket.cpp:22
quint16 m_sequenceNumber
Definition: TSBPacket.h:81
e_helper
The e_helper enum is used to help to have sizes.
Definition: TSBPacket.h:26