Public Member Functions | Private Attributes | List of all members
swarmio::tool::LogBuffer Class Referencefinal

#include <LogBuffer.h>

Public Member Functions

std::list< g3::LogMessage > GetMessages ()
 Get a copy of the list of messages. More...
 
void ReceiveLogMessage (g3::LogMessageMover logEntry)
 Receive log messages. More...
 

Private Attributes

std::list< g3::LogMessage > _messages
 Internal list of messages. More...
 
std::mutex _mutex
 Mutex to protect the list of messages. More...
 

Detailed Description

Definition at line 10 of file LogBuffer.h.

Member Function Documentation

std::list<g3::LogMessage> swarmio::tool::LogBuffer::GetMessages ( )
inline

Get a copy of the list of messages.

Returns
std::list<std::string>

Definition at line 52 of file LogBuffer.h.

void swarmio::tool::LogBuffer::ReceiveLogMessage ( g3::LogMessageMover  logEntry)
inline

Receive log messages.

Parameters
logEntryLog message

Definition at line 33 of file LogBuffer.h.

Member Data Documentation

std::list<g3::LogMessage> swarmio::tool::LogBuffer::_messages
private

Internal list of messages.

Definition at line 18 of file LogBuffer.h.

std::mutex swarmio::tool::LogBuffer::_mutex
private

Mutex to protect the list of messages.

Definition at line 24 of file LogBuffer.h.


The documentation for this class was generated from the following file:


swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48