Apache Log4cxx  Version 1.6.0
Loading...
Searching...
No Matches
log4cxx::helpers::AsyncBuffer Class Reference

This class is used by the LOG4CXX_INFO_ASYNC and similar macros to support insertion operators. More...

#include <asyncbuffer.h>

Public Types

using StringViewType = fmt::basic_string_view<char>
using FmtArgStore = fmt::dynamic_format_arg_store<fmt::format_context>
using WideStringViewType = fmt::basic_string_view<wchar_t>
using WideFmtArgStore = fmt::dynamic_format_arg_store<fmt::wformat_context>

Public Member Functions

 AsyncBuffer ()
 An empty buffer.
 AsyncBuffer (AsyncBuffer &&other)
 A new buffer with the content of other.
 ~AsyncBuffer ()
 Release resources.
template<typename T>
AsyncBufferoperator<< (const T &value)
 Append a function to this buffer that will convert value to text.
bool empty () const
 Has no item been added to this?
void renderMessage (LogCharMessageBuffer &msg) const
 Add text version of buffered values to msg.
void clear ()
 Remove all message appenders.
template<typename... Args>
void setMessage (fmt::format_string< Args... > fmt_str, Args &&... args)
template<typename... Args>
void setMessage (fmt::wformat_string< Args... > fmt_str, Args &&... args)

Detailed Description

This class is used by the LOG4CXX_INFO_ASYNC and similar macros to support insertion operators.

The class is not intended for use outside of that context.

Member Typedef Documentation

◆ FmtArgStore

using log4cxx::helpers::AsyncBuffer::FmtArgStore = fmt::dynamic_format_arg_store<fmt::format_context>

◆ StringViewType

using log4cxx::helpers::AsyncBuffer::StringViewType = fmt::basic_string_view<char>

◆ WideFmtArgStore

using log4cxx::helpers::AsyncBuffer::WideFmtArgStore = fmt::dynamic_format_arg_store<fmt::wformat_context>

◆ WideStringViewType

using log4cxx::helpers::AsyncBuffer::WideStringViewType = fmt::basic_string_view<wchar_t>

Constructor & Destructor Documentation

◆ AsyncBuffer() [1/2]

log4cxx::helpers::AsyncBuffer::AsyncBuffer ( )

An empty buffer.

◆ AsyncBuffer() [2/2]

log4cxx::helpers::AsyncBuffer::AsyncBuffer ( AsyncBuffer && other)

A new buffer with the content of other.

◆ ~AsyncBuffer()

log4cxx::helpers::AsyncBuffer::~AsyncBuffer ( )

Release resources.

Member Function Documentation

◆ clear()

void log4cxx::helpers::AsyncBuffer::clear ( )

Remove all message appenders.

◆ empty()

bool log4cxx::helpers::AsyncBuffer::empty ( ) const

Has no item been added to this?

◆ operator<<()

template<typename T>
AsyncBuffer & log4cxx::helpers::AsyncBuffer::operator<< ( const T & value)
inline

Append a function to this buffer that will convert value to text.

Parameters
valuetype must be copy-constructable
Returns
this buffer.

◆ renderMessage()

void log4cxx::helpers::AsyncBuffer::renderMessage ( LogCharMessageBuffer & msg) const

Add text version of buffered values to msg.

◆ setMessage() [1/2]

template<typename... Args>
void log4cxx::helpers::AsyncBuffer::setMessage ( fmt::format_string< Args... > fmt_str,
Args &&... args )
inline

◆ setMessage() [2/2]

template<typename... Args>
void log4cxx::helpers::AsyncBuffer::setMessage ( fmt::wformat_string< Args... > fmt_str,
Args &&... args )
inline

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