helics  3.5.2
Public Member Functions | Static Public Attributes | List of all members
helics::LogBuffer Class Reference

#include <LogBuffer.hpp>

Public Member Functions

 LogBuffer (std::size_t maxSize)
 
void resize (std::size_t newSize)
 
void enable (bool enable=true)
 
std::size_t capacity () const
 
std::size_t size () const
 
void push (int logLevel, std::string_view header, std::string_view message)
 
void process (const std::function< void(int, std::string_view, std::string_view)> &procFunc) const
 

Static Public Attributes

static constexpr std::size_t cDefaultBufferSize {10UL}
 

Detailed Description

a threadsafe small buffer for log messages that will store a maximum of mMaxSize messages


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