ITS
LocationServicePacketBuffer.h
Go to the documentation of this file.
1 
7 #ifndef LocationServicePacketBuffer_H
8 #define LocationServicePacketBuffer_H
9 
10 #include <QVector>
11 #include <QHash>
12 #include <GNDataRequest.h>
13 #include <QMutex>
15 
17 {
18 public:
19  /* Constructors */
24 
30 
37  void addPacket(GnAddr destination, gnDataRequest_t packet, quint32 timestamp);
43  bool find(GnAddr destination);
48  void erase(GnAddr destination);
53  void remove(LocationServicePacketEntry lspe);
59  void clear();
60 
61  QMutex *m_mutex;
67  QList<LocationServicePacketEntry> lsPacketBuffer() {return m_lsPacketBuffer;}
68 
69 private:
70  QList<LocationServicePacketEntry> m_lsPacketBuffer;
72 };
73 
74 #endif // _LocationServicePacketBuffer_H_
gnDataRequest_t structure is the GN data request definition.
Definition: GNDataRequest.h:46
void clear()
clear Clear the buffer.
LocationServicePacketBuffer()
LocationServicePacketBuffer Default constructor.
GN data request definition.
QList< LocationServicePacketEntry > lsPacketBuffer()
lsPacketBuffer The LS buffer getter.
QList< LocationServicePacketEntry > m_lsPacketBuffer
void erase(GnAddr destination)
find Remove packet in the buffer.
Definition: GnAddr.h:28
bool find(GnAddr destination)
find Search packet in the buffer.
Entry of the LS buffer.
void addPacket(GnAddr destination, gnDataRequest_t packet, quint32 timestamp)
addPacket Add packet to the buffer.