Main Page
Namespaces
Classes
Files
File List
File Members
src
tools
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
//
18
class
BasicDataBuffer
19
{
20
public
:
22
BasicDataBuffer
();
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
:
35
bool
m_beVerbose
;
36
UINT32
m_bytesMax
;
37
std::list<BasicData*>
m_buffer
;
38
UINT32
m_bytesUsed
;
39
Mutex
m_mutex
;
// Thread-Safety
40
};
41
42
43
44
#endif
BasicDataBuffer
Definition:
BasicDataBuffer.hpp:18
BasicDataBuffer::m_beVerbose
bool m_beVerbose
Definition:
BasicDataBuffer.hpp:35
datatypes
Definition:
BasicDatatypes.hpp:91
BasicDataBuffer::m_mutex
Mutex m_mutex
Definition:
BasicDataBuffer.hpp:39
UINT32
uint32_t UINT32
Definition:
BasicDatatypes.hpp:26
Mutex
Definition:
Mutex.hpp:16
Mutex.hpp
BasicDataBuffer::m_bytesUsed
UINT32 m_bytesUsed
Definition:
BasicDataBuffer.hpp:38
BasicDataBuffer::m_buffer
std::list< BasicData * > m_buffer
Definition:
BasicDataBuffer.hpp:37
datatypes::BasicData
Definition:
BasicDatatypes.hpp:95
BasicDataBuffer::m_bytesMax
UINT32 m_bytesMax
Definition:
BasicDataBuffer.hpp:36
libsick_ldmrs
Author(s): SICK AG
, Martin Günther
, Jochen Sprickerhof
autogenerated on Mon Oct 26 2020 03:27:29