KiCad PCB EDA Suite
|
A wrapper around a wxFileName which is much more performant with a subset of the API. More...
#include <wx_filename.h>
Public Member Functions | |
WX_FILENAME (const wxString &aPath, const wxString &aFilename) | |
void | SetFullName (const wxString &aFileNameAndExtension) |
void | SetPath (const wxString &aPath) |
wxString | GetName () const |
wxString | GetFullName () const |
wxString | GetPath () const |
wxString | GetFullPath () const |
long long | GetTimestamp () |
Static Public Member Functions | |
static void | ResolvePossibleSymlinks (wxFileName &aFilename) |
Private Member Functions | |
void | resolve () |
Private Attributes | |
wxFileName | m_fn |
wxString | m_path |
wxString | m_fullName |
A wrapper around a wxFileName which is much more performant with a subset of the API.
A wrapper around a wxFileName which avoids expensive calls to wxFileName::SplitPath() and string concatenations by caching the path and filename locally and only resolving the wxFileName when it has to.
Definition at line 49 of file wx_filename.h.
WX_FILENAME::WX_FILENAME | ( | const wxString & | aPath, |
const wxString & | aFilename | ||
) |
Definition at line 28 of file wx_filename.cpp.
wxString WX_FILENAME::GetFullName | ( | ) | const |
Definition at line 54 of file wx_filename.cpp.
References m_fullName.
Referenced by BOOST_AUTO_TEST_CASE().
wxString WX_FILENAME::GetFullPath | ( | ) | const |
Definition at line 66 of file wx_filename.cpp.
References m_fullName, and m_path.
Referenced by BOOST_AUTO_TEST_CASE(), GPCB_FPL_CACHE::Load(), FP_CACHE::Load(), and FP_CACHE::Save().
wxString WX_FILENAME::GetName | ( | ) | const |
Definition at line 47 of file wx_filename.cpp.
References m_fullName.
Referenced by BOOST_AUTO_TEST_CASE(), GPCB_FPL_CACHE::Load(), and FP_CACHE::Load().
wxString WX_FILENAME::GetPath | ( | ) | const |
Definition at line 60 of file wx_filename.cpp.
References m_path.
Referenced by BOOST_AUTO_TEST_CASE(), and FP_CACHE::Save().
long long WX_FILENAME::GetTimestamp | ( | ) |
Definition at line 81 of file wx_filename.cpp.
References m_fn, and resolve().
Referenced by FP_CACHE::Save().
|
private |
Definition at line 73 of file wx_filename.cpp.
References m_fn, and m_fullName.
Referenced by GetTimestamp().
|
static |
Definition at line 92 of file wx_filename.cpp.
References TO_UTF8.
Referenced by PCB_IO_KICAD_SEXPR::FootprintSave(), PCB_EDIT_FRAME::GenIPC2581File(), PCB_EDIT_FRAME::GenODBPPFiles(), PATHS::GetExecutablePath(), SCH_IO_LIB_CACHE::GetRealFile(), PCB_EDIT_FRAME::SavePcbFile(), and SCH_EDIT_FRAME::saveSchematicFile().
void WX_FILENAME::SetFullName | ( | const wxString & | aFileNameAndExtension | ) |
Definition at line 34 of file wx_filename.cpp.
References m_fullName.
Referenced by GPCB_FPL_CACHE::Load(), and FP_CACHE::Load().
void WX_FILENAME::SetPath | ( | const wxString & | aPath | ) |
Definition at line 40 of file wx_filename.cpp.
Referenced by FP_CACHE_ITEM::SetFilePath().
|
private |
Definition at line 72 of file wx_filename.h.
Referenced by GetTimestamp(), resolve(), and SetPath().
|
private |
Definition at line 74 of file wx_filename.h.
Referenced by GetFullName(), GetFullPath(), GetName(), resolve(), and SetFullName().
|
private |
Definition at line 73 of file wx_filename.h.
Referenced by GetFullPath(), GetPath(), and SetPath().