Public Member Functions | Public Attributes | List of all members
spdlog::details::async_msg Struct Reference

#include <thread_pool.h>

Public Member Functions

 async_msg ()=default
 
 ~async_msg ()=default
 
 async_msg (const async_msg &)=delete
 
 async_msg (async_msg &&)=default
 
async_msgoperator= (async_msg &&)=default
 
 async_msg (async_logger_ptr &&worker, async_msg_type the_type, details::log_msg &m)
 
 async_msg (async_logger_ptr &&worker, async_msg_type the_type)
 
 async_msg (async_msg_type the_type)
 
log_msg to_log_msg ()
 

Public Attributes

async_msg_type msg_type
 
level::level_enum level
 
log_clock::time_point time
 
size_t thread_id
 
fmt::basic_memory_buffer< char, 176 > raw
 
size_t msg_id
 
source_loc source
 
async_logger_ptr worker_ptr
 

Detailed Description

Definition at line 27 of file thread_pool.h.

Constructor & Destructor Documentation

spdlog::details::async_msg::async_msg ( )
default
spdlog::details::async_msg::~async_msg ( )
default
spdlog::details::async_msg::async_msg ( const async_msg )
delete
spdlog::details::async_msg::async_msg ( async_msg &&  )
default
spdlog::details::async_msg::async_msg ( async_logger_ptr &&  worker,
async_msg_type  the_type,
details::log_msg m 
)
inline

Definition at line 76 of file thread_pool.h.

77  : msg_type(the_type)
78  , level(m.level)
79  , time(m.time)
80  , thread_id(m.thread_id)
81  , msg_id(m.msg_id)
82  , source(m.source)
83  , worker_ptr(std::move(worker))
84  {
86  }
static const double m
Definition: Units.h:79
log_clock::time_point time
Definition: thread_pool.h:31
async_logger_ptr worker_ptr
Definition: thread_pool.h:37
Raw data description.
level::level_enum level
Definition: thread_pool.h:30
def move(depos, offset)
Definition: depos.py:107
void append_string_view(spdlog::string_view_t view, fmt::basic_memory_buffer< char, Buffer_Size > &dest)
Definition: fmt_helper.h:30
async_msg_type msg_type
Definition: thread_pool.h:29
spdlog::details::async_msg::async_msg ( async_logger_ptr &&  worker,
async_msg_type  the_type 
)
inline

Definition at line 88 of file thread_pool.h.

89  : msg_type(the_type)
90  , level(level::off)
91  , time()
92  , thread_id(0)
93  , msg_id(0)
94  , source()
95  , worker_ptr(std::move(worker))
96  {
97  }
log_clock::time_point time
Definition: thread_pool.h:31
async_logger_ptr worker_ptr
Definition: thread_pool.h:37
level::level_enum level
Definition: thread_pool.h:30
def move(depos, offset)
Definition: depos.py:107
async_msg_type msg_type
Definition: thread_pool.h:29
spdlog::details::async_msg::async_msg ( async_msg_type  the_type)
inlineexplicit

Definition at line 99 of file thread_pool.h.

100  : async_msg(nullptr, the_type)
101  {
102  }

Member Function Documentation

async_msg& spdlog::details::async_msg::operator= ( async_msg &&  )
default
log_msg spdlog::details::async_msg::to_log_msg ( )
inline

Definition at line 105 of file thread_pool.h.

106  {
107  log_msg msg(&worker_ptr->name(), level, string_view_t(raw.data(), raw.size()));
108  msg.time = time;
109  msg.thread_id = thread_id;
110  msg.msg_id = msg_id;
111  msg.source = source;
112  msg.color_range_start = 0;
113  msg.color_range_end = 0;
114  return msg;
115  }
void msg(const char *fmt,...)
Definition: message.cpp:107
log_clock::time_point time
Definition: thread_pool.h:31
async_logger_ptr worker_ptr
Definition: thread_pool.h:37
Raw data description.
level::level_enum level
Definition: thread_pool.h:30
fmt::string_view string_view_t
Definition: common.h:88

Member Data Documentation

level::level_enum spdlog::details::async_msg::level

Definition at line 30 of file thread_pool.h.

size_t spdlog::details::async_msg::msg_id

Definition at line 35 of file thread_pool.h.

async_msg_type spdlog::details::async_msg::msg_type

Definition at line 29 of file thread_pool.h.

fmt::basic_memory_buffer<char, 176> spdlog::details::async_msg::raw

Definition at line 33 of file thread_pool.h.

source_loc spdlog::details::async_msg::source

Definition at line 36 of file thread_pool.h.

size_t spdlog::details::async_msg::thread_id

Definition at line 32 of file thread_pool.h.

log_clock::time_point spdlog::details::async_msg::time

Definition at line 31 of file thread_pool.h.

async_logger_ptr spdlog::details::async_msg::worker_ptr

Definition at line 37 of file thread_pool.h.


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