KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TRACE_MANAGER Class Reference

#include <trace_helpers.h>

Public Member Functions

 TRACE_MANAGER ()
 
 ~TRACE_MANAGER ()
 
 WX_DEFINE_VARARG_FUNC_VOID (Trace, 2,(const wxString, const wxFormatString &), DoTrace, DoTraceUtf8) void DoTrace(const wxString aWhat
 
const wxChar va_start (argptr, aFmt)
 
 traceV (aWhat, aFmt, argptr)
 
 va_end (argptr)
 
bool IsTraceEnabled (const wxString &aWhat)
 

Static Public Member Functions

static TRACE_MANAGERInstance ()
 

Public Attributes

const wxChar * aFmt
 

Private Member Functions

void traceV (const wxString &aWhat, const wxString &aFmt, va_list vargs)
 
void init ()
 

Private Attributes

std::map< wxString, bool > m_enabledTraces
 
bool m_globalTraceEnabled
 
bool m_printAllTraces
 

Detailed Description

Definition at line 269 of file trace_helpers.h.

Constructor & Destructor Documentation

◆ TRACE_MANAGER()

TRACE_MANAGER::TRACE_MANAGER ( )
inline

Definition at line 272 of file trace_helpers.h.

Referenced by Instance().

◆ ~TRACE_MANAGER()

TRACE_MANAGER::~TRACE_MANAGER ( )
inline

Definition at line 276 of file trace_helpers.h.

Member Function Documentation

◆ init()

void TRACE_MANAGER::init ( )
private

Definition at line 331 of file trace_helpers.cpp.

References m_enabledTraces, m_globalTraceEnabled, and m_printAllTraces.

Referenced by Instance().

◆ Instance()

TRACE_MANAGER & TRACE_MANAGER::Instance ( )
static

Definition at line 288 of file trace_helpers.cpp.

References init(), and TRACE_MANAGER().

◆ IsTraceEnabled()

bool TRACE_MANAGER::IsTraceEnabled ( const wxString &  aWhat)

Definition at line 302 of file trace_helpers.cpp.

References m_enabledTraces, m_globalTraceEnabled, and m_printAllTraces.

Referenced by traceV().

◆ traceV() [1/2]

TRACE_MANAGER::traceV ( aWhat  ,
aFmt  ,
argptr   
)

◆ traceV() [2/2]

void TRACE_MANAGER::traceV ( const wxString &  aWhat,
const wxString &  aFmt,
va_list  vargs 
)
private

Definition at line 317 of file trace_helpers.cpp.

References aFmt, and IsTraceEnabled().

◆ va_end()

TRACE_MANAGER::va_end ( argptr  )

◆ va_start()

const wxChar TRACE_MANAGER::va_start ( argptr  ,
aFmt   
)

◆ WX_DEFINE_VARARG_FUNC_VOID()

TRACE_MANAGER::WX_DEFINE_VARARG_FUNC_VOID ( Trace  ,
,
(const wxString, const wxFormatString &)  ,
DoTrace  ,
DoTraceUtf8   
) const

Member Data Documentation

◆ aFmt

const wxChar* TRACE_MANAGER::aFmt

Definition at line 283 of file trace_helpers.h.

Referenced by traceV().

◆ m_enabledTraces

std::map<wxString, bool> TRACE_MANAGER::m_enabledTraces
private

Definition at line 307 of file trace_helpers.h.

Referenced by init(), and IsTraceEnabled().

◆ m_globalTraceEnabled

bool TRACE_MANAGER::m_globalTraceEnabled
private

Definition at line 308 of file trace_helpers.h.

Referenced by init(), and IsTraceEnabled().

◆ m_printAllTraces

bool TRACE_MANAGER::m_printAllTraces
private

Definition at line 309 of file trace_helpers.h.

Referenced by init(), and IsTraceEnabled().


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