KiCad PCB EDA Suite
WX_LOGLEVEL_CONTEXT Class Reference

Context class to set wx loglevel for a block, and always restore it at the end. More...

Public Member Functions

 WX_LOGLEVEL_CONTEXT (wxLogLevel level)
 
 ~WX_LOGLEVEL_CONTEXT ()
 

Private Attributes

wxLogLevel m_old_level
 

Detailed Description

Context class to set wx loglevel for a block, and always restore it at the end.

Definition at line 54 of file eda_pattern_match.cpp.

Constructor & Destructor Documentation

WX_LOGLEVEL_CONTEXT::WX_LOGLEVEL_CONTEXT ( wxLogLevel  level)
inline

Definition at line 59 of file eda_pattern_match.cpp.

60  {
61  m_old_level = wxLog::GetLogLevel();
62  wxLog::SetLogLevel( level );
63  }
WX_LOGLEVEL_CONTEXT::~WX_LOGLEVEL_CONTEXT ( )
inline

Definition at line 65 of file eda_pattern_match.cpp.

66  {
67  wxLog::SetLogLevel( m_old_level );
68  }

Member Data Documentation

wxLogLevel WX_LOGLEVEL_CONTEXT::m_old_level
private

Definition at line 56 of file eda_pattern_match.cpp.


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