17 #ifndef FRAMEBUFFER_HH
18 #define FRAMEBUFFER_HH
53 void addFrame(
const std::string& frame);
Class implementing circular buffer.
static constexpr int _MAX_LIST_SIZE
Max circular buffer size.
bool isFrame() const
Check if there is any frame in a circular buffer.
std::list< std::string > _frameList
List containing individual frames.
std::mutex _access
Mutex that provides single access to the list.
void addFrame(const std::string &frame)
Add one frame at the end of list.
~FrameBuffer()=default
Destroy the FrameBuffer object.
FrameBuffer()=default
Construct a new FrameBuffer object.
bool getFrame(std::string &frame)
Get one frame from the top of the list.