Doxygen
|
Helper class to trace an entry statement at creation and another one at destruction. More...
#include <src/trace.h>
Public Member Functions | |
AutoTrace (spdlog::source_loc loc) | |
template<typename... Args> | |
AutoTrace (spdlog::source_loc loc, const std::string &fmt, Args &&...args) | |
~AutoTrace () | |
template<typename... Args> | |
void | add (spdlog::source_loc loc, const std::string &fmt, Args &&...args) |
template<typename... Args> | |
void | setExit (const std::string &msg, Args &&...args) |
Private Attributes | |
spdlog::source_loc | m_loc |
std::string | m_exitMessage |
Helper class to trace an entry statement at creation and another one at destruction.
|
inlineexplicit |
|
inlineexplicit |
|
inline |
Definition at line 107 of file trace.h.
References g_tracer, m_exitMessage, and m_loc.
|
inline |
|
inline |
|
private |
Definition at line 139 of file trace.h.
Referenced by setExit(), and ~AutoTrace().
|
private |
Definition at line 138 of file trace.h.
Referenced by AutoTrace(), AutoTrace(), and ~AutoTrace().