Classes | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
rosflight_firmware::CommManager::LogMessageBuffer Class Reference

Classes

struct  LogMessage
 

Public Member Functions

void add_message (CommLinkInterface::LogSeverity severity, char msg[LOG_MSG_SIZE])
 
bool empty () const
 
bool full () const
 
 LogMessageBuffer ()
 
const LogMessageoldest () const
 
void pop ()
 
size_t size () const
 

Static Public Attributes

static constexpr int LOG_BUF_SIZE = 25
 

Private Attributes

LogMessage buffer_ [LOG_BUF_SIZE]
 
size_t length_ = 0
 
size_t newest_ = 0
 
size_t oldest_ = 0
 

Detailed Description

Definition at line 89 of file comm_manager.h.

Constructor & Destructor Documentation

rosflight_firmware::CommManager::LogMessageBuffer::LogMessageBuffer ( )

Definition at line 43 of file comm_manager.cpp.

Member Function Documentation

void rosflight_firmware::CommManager::LogMessageBuffer::add_message ( CommLinkInterface::LogSeverity  severity,
char  msg[LOG_MSG_SIZE] 
)

Definition at line 48 of file comm_manager.cpp.

bool rosflight_firmware::CommManager::LogMessageBuffer::empty ( ) const
inline

Definition at line 102 of file comm_manager.h.

bool rosflight_firmware::CommManager::LogMessageBuffer::full ( ) const
inline

Definition at line 103 of file comm_manager.h.

const LogMessage& rosflight_firmware::CommManager::LogMessageBuffer::oldest ( ) const
inline

Definition at line 104 of file comm_manager.h.

void rosflight_firmware::CommManager::LogMessageBuffer::pop ( )

Definition at line 65 of file comm_manager.cpp.

size_t rosflight_firmware::CommManager::LogMessageBuffer::size ( ) const
inline

Definition at line 101 of file comm_manager.h.

Member Data Documentation

LogMessage rosflight_firmware::CommManager::LogMessageBuffer::buffer_[LOG_BUF_SIZE]
private

Definition at line 108 of file comm_manager.h.

size_t rosflight_firmware::CommManager::LogMessageBuffer::length_ = 0
private

Definition at line 111 of file comm_manager.h.

constexpr int rosflight_firmware::CommManager::LogMessageBuffer::LOG_BUF_SIZE = 25
static

Definition at line 92 of file comm_manager.h.

size_t rosflight_firmware::CommManager::LogMessageBuffer::newest_ = 0
private

Definition at line 110 of file comm_manager.h.

size_t rosflight_firmware::CommManager::LogMessageBuffer::oldest_ = 0
private

Definition at line 109 of file comm_manager.h.


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


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Sat May 9 2020 03:17:00