Public Member Functions | Private Attributes | List of all members
spdlog::spdlog_ex Class Reference

#include <common.h>

Inheritance diagram for spdlog::spdlog_ex:

Public Member Functions

 spdlog_ex (std::string msg)
 
 spdlog_ex (const std::string &msg, int last_errno)
 
const char * what () const SPDLOG_NOEXCEPT override
 

Private Attributes

std::string msg_
 

Detailed Description

Definition at line 172 of file common.h.

Constructor & Destructor Documentation

spdlog::spdlog_ex::spdlog_ex ( std::string  msg)
inlineexplicit

Definition at line 175 of file common.h.

176  : msg_(std::move(msg))
177  {
178  }
void msg(const char *fmt,...)
Definition: message.cpp:107
def move(depos, offset)
Definition: depos.py:107
std::string msg_
Definition: common.h:193
spdlog::spdlog_ex::spdlog_ex ( const std::string msg,
int  last_errno 
)
inline

Definition at line 180 of file common.h.

181  {
182  fmt::memory_buffer outbuf;
183  fmt::format_system_error(outbuf, last_errno, msg);
184  msg_ = fmt::to_string(outbuf);
185  }
basic_memory_buffer< char > memory_buffer
Definition: format.h:553
void msg(const char *fmt,...)
Definition: message.cpp:107
FMT_FUNC void format_system_error(internal::buffer &out, int error_code, string_view message) FMT_NOEXCEPT
Definition: format-inl.h:906
std::string msg_
Definition: common.h:193
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34

Member Function Documentation

const char* spdlog::spdlog_ex::what ( ) const
inlineoverride

Definition at line 187 of file common.h.

188  {
189  return msg_.c_str();
190  }
std::string msg_
Definition: common.h:193

Member Data Documentation

std::string spdlog::spdlog_ex::msg_
private

Definition at line 193 of file common.h.


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