BasicDataBuffer.hpp
Go to the documentation of this file.
1 
5 #ifndef BASICDATABUFFER_HPP
6 #define BASICDATABUFFER_HPP
7 
8 #include "../BasicDatatypes.hpp"
9 #include "Mutex.hpp"
10 #include <vector> // for std::vector
11 #include <list> // for std::list
12 
13 using namespace datatypes;
14 
15 //
16 // Buffer for Data of base-type BasicData.
17 //
19 {
20 public:
23 
25  ~BasicDataBuffer();
26 
27  void setLimit(UINT32 maxBytesToBeUsed);
28  bool pushData(BasicData* data);
29  BasicData* popData();
30  UINT32 getUsedBytes();
31  UINT32 getBufferSize(); // # gespeicherter Datensaetze
32 
33 
34 private:
37  std::list<BasicData*> m_buffer;
39  Mutex m_mutex; // Thread-Safety
40 };
41 
42 
43 
44 #endif
uint32_t UINT32
Definition: Mutex.hpp:16
std::list< BasicData * > m_buffer


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Sat Jun 8 2019 17:57:33