ITS
SHBPacket.h
Go to the documentation of this file.
1 
11 #ifndef SHBPacket_H
12 #define SHBPacket_H
13 
14 #include <QObject>
15 #include <constantes.h>
16 #include <LongPositionVector.h>
17 #include <CommonHeader.h>
18 
19 class SHBPacket
20 {
21 public:
25  enum e_helper
26  {
28  };
29 
33  SHBPacket();
43  SHBPacket(const SHBPacket& other);
47  ~SHBPacket();
53  quint64 extract(uchar* packet);
54 
55  /* API */
60  QByteArray toHex();
61 
66  LongPositionVector soPv() const {return m_soPv;}
71  void setSoPv(LongPositionVector lpv) {m_soPv = lpv;}
72 
73 private:
75  quint32 m_reserved;
76 };
77 
78 #endif // _SHBPacket_H_
e_helper
The e_helper enum is used to help to have sizes.
Definition: SHBPacket.h:25
Common Header structure.
~SHBPacket()
~SHBPacket SHBPacket destructor.
Definition: SHBPacket.cpp:21
void setSoPv(LongPositionVector lpv)
setSoPv SHB SO PV setter.
Definition: SHBPacket.h:71
QByteArray toHex()
toHex Create a QByteArray containing the hexadecimal format of the SHBPacket.
Definition: SHBPacket.cpp:35
SHBPacket()
SHBPacket SHBPacket constructor.
Definition: SHBPacket.cpp:3
LongPositionVector m_soPv
Definition: SHBPacket.h:74
quint64 extract(uchar *packet)
extract Extract GBC from packet.
Definition: SHBPacket.cpp:25
Constantes used everywhere.
quint32 m_reserved
Definition: SHBPacket.h:75
LPV definition.
LongPositionVector soPv() const
soPv SHB SO PV getter.
Definition: SHBPacket.h:66