|
KiCad PCB EDA Suite
|
A scoped application of a wxLog target. More...
#include <wx_log_utils.h>
Public Member Functions | |
| SCOPED_WXLOG_TARGET (wxLog *aTarget) | |
| ~SCOPED_WXLOG_TARGET () | |
| SCOPED_WXLOG_TARGET (const SCOPED_WXLOG_TARGET &)=delete | |
| SCOPED_WXLOG_TARGET & | operator= (const SCOPED_WXLOG_TARGET &)=delete |
Private Attributes | |
| wxLog * | m_logger |
| wxLog * | m_previous |
A scoped application of a wxLog target.
While this class lives, all wxLog messages are sent to the given target. When this class is destroyed, the previous target is restored.
Definition at line 33 of file wx_log_utils.h.
|
inline |
| aTarget | the wxLog target to use for the lifetime of this object (null is allowed, and means no logging) |
Definition at line 40 of file wx_log_utils.h.
References m_logger, and m_previous.
Referenced by operator=(), KI_TEST::SCOPED_COUNTING_WXLOG::SCOPED_COUNTING_WXLOG(), and SCOPED_WXLOG_TARGET().
|
inline |
Definition at line 46 of file wx_log_utils.h.
References m_previous.
|
delete |
References SCOPED_WXLOG_TARGET().
|
delete |
References SCOPED_WXLOG_TARGET().
|
private |
Definition at line 53 of file wx_log_utils.h.
Referenced by SCOPED_WXLOG_TARGET().
|
private |
Definition at line 54 of file wx_log_utils.h.
Referenced by SCOPED_WXLOG_TARGET(), and ~SCOPED_WXLOG_TARGET().