Class implementing circular buffer.
More...
#include <frameBuffer.hh>
Definition at line 28 of file frameBuffer.hh.
◆ FrameBuffer()
FrameBuffer::FrameBuffer |
( |
| ) |
|
|
default |
◆ ~FrameBuffer()
FrameBuffer::~FrameBuffer |
( |
| ) |
|
|
default |
◆ addFrame()
void FrameBuffer::addFrame |
( |
const std::string & |
frame | ) |
|
- Parameters
-
[in] | frame | One line of data from the serial device. |
Definition at line 19 of file frameBuffer.cpp.
◆ getFrame()
bool FrameBuffer::getFrame |
( |
std::string & |
frame | ) |
|
- Parameters
-
[out] | frame | String to which frame will be saved. |
- Returns
- Identifier wether the frame was received.
- Return values
-
true | Frame successfully received. |
false | Frame list is empty. Can not receive any frame. |
Definition at line 30 of file frameBuffer.cpp.
◆ isFrame()
bool FrameBuffer::isFrame |
( |
| ) |
const |
- Returns
- Identifier wether the list is empty.
- Return values
-
true | There are at least one frame in the list. |
false | The list is empty. |
Definition at line 42 of file frameBuffer.cpp.
◆ _access
std::mutex FrameBuffer::_access |
|
mutableprivate |
◆ _frameList
std::list<std::string> FrameBuffer::_frameList |
|
private |
◆ _MAX_LIST_SIZE
constexpr int FrameBuffer::_MAX_LIST_SIZE = 10 |
|
staticconstexprprivate |
The documentation for this class was generated from the following files: