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 283 of file trace_helpers.h.

Constructor & Destructor Documentation

◆ TRACE_MANAGER()

TRACE_MANAGER::TRACE_MANAGER ( )
inline

Definition at line 286 of file trace_helpers.h.

References m_globalTraceEnabled, and m_printAllTraces.

Referenced by Instance().

◆ ~TRACE_MANAGER()

TRACE_MANAGER::~TRACE_MANAGER ( )
inline

Definition at line 290 of file trace_helpers.h.

Member Function Documentation

◆ init()

void TRACE_MANAGER::init ( )
private

Definition at line 333 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 290 of file trace_helpers.cpp.

References init(), and TRACE_MANAGER().

◆ IsTraceEnabled()

bool TRACE_MANAGER::IsTraceEnabled ( const wxString & aWhat)

Definition at line 304 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  )

References aFmt.

◆ traceV() [2/2]

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

Definition at line 319 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  )

References aFmt.

◆ WX_DEFINE_VARARG_FUNC_VOID()

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

Member Data Documentation

◆ aFmt

const wxChar* TRACE_MANAGER::aFmt

Definition at line 297 of file trace_helpers.h.

Referenced by traceV(), traceV(), and va_start().

◆ m_enabledTraces

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

Definition at line 321 of file trace_helpers.h.

Referenced by init(), and IsTraceEnabled().

◆ m_globalTraceEnabled

bool TRACE_MANAGER::m_globalTraceEnabled
private

Definition at line 322 of file trace_helpers.h.

Referenced by init(), IsTraceEnabled(), and TRACE_MANAGER().

◆ m_printAllTraces

bool TRACE_MANAGER::m_printAllTraces
private

Definition at line 323 of file trace_helpers.h.

Referenced by init(), IsTraceEnabled(), and TRACE_MANAGER().


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