|
KiCad PCB EDA Suite
|
RAII helper that sets the VCS context path on construction and restores the previous value on destruction. More...
#include <text_eval_vcs.h>
Public Member Functions | |
| CONTEXT_PATH_SCOPE (const wxString &aPath) | |
| ~CONTEXT_PATH_SCOPE () | |
| CONTEXT_PATH_SCOPE (const CONTEXT_PATH_SCOPE &)=delete | |
| CONTEXT_PATH_SCOPE & | operator= (const CONTEXT_PATH_SCOPE &)=delete |
Private Attributes | |
| wxString | m_previous |
| bool | m_previousIsFile |
RAII helper that sets the VCS context path on construction and restores the previous value on destruction.
Nests correctly across multiple scopes on the same thread.
Definition at line 165 of file text_eval_vcs.h.
|
explicit |
Definition at line 64 of file text_eval_vcs.cpp.
References m_previous, m_previousIsFile, and TEXT_EVAL_VCS::SetContextPath().
Referenced by CONTEXT_PATH_SCOPE(), and operator=().
| TEXT_EVAL_VCS::CONTEXT_PATH_SCOPE::~CONTEXT_PATH_SCOPE | ( | ) |
Definition at line 72 of file text_eval_vcs.cpp.
References m_previous, and m_previousIsFile.
|
delete |
References CONTEXT_PATH_SCOPE().
|
delete |
References CONTEXT_PATH_SCOPE().
|
private |
Definition at line 175 of file text_eval_vcs.h.
Referenced by CONTEXT_PATH_SCOPE(), and ~CONTEXT_PATH_SCOPE().
|
private |
Definition at line 176 of file text_eval_vcs.h.
Referenced by CONTEXT_PATH_SCOPE(), and ~CONTEXT_PATH_SCOPE().