KiCad PCB EDA Suite
|
#include <kiid.h>
Public Member Functions | |
KIID_PATH () | |
KIID_PATH (const wxString &aString) | |
bool | MakeRelativeTo (const KIID_PATH &aPath) |
bool | EndsWith (const KIID_PATH &aPath) const |
Test if aPath from the last path towards the first path. | |
wxString | AsString () const |
bool | operator== (KIID_PATH const &rhs) const |
bool | operator< (KIID_PATH const &rhs) const |
bool | operator> (KIID_PATH const &rhs) const |
KIID_PATH & | operator+= (const KIID_PATH &aRhs) |
Friends | |
KIID_PATH | operator+ (KIID_PATH aLhs, const KIID_PATH &aRhs) |
wxString KIID_PATH::AsString | ( | ) | const |
Definition at line 348 of file kiid.cpp.
References KIID::AsString(), and path.
Referenced by SCH_SYMBOL::AddHierarchicalReference(), SCH_SHEET::addInstance(), SCH_EDIT_FRAME::AnnotateSymbols(), PCB_IO_KICAD_SEXPR::format(), SCH_SHEET_PATH::IsContainedWithin(), SCH_EDIT_FRAME::mapExistingAnnotation(), SCH_SHEET::RemoveInstance(), SCH_SYMBOL::RemoveInstance(), SCH_IO_KICAD_SEXPR::saveSymbol(), PCB_SELECTION_TOOL::selectSameSheet(), DIALOG_FOOTPRINT_ASSOCIATIONS::TransferDataToWindow(), BOARD_NETLIST_UPDATER::updateFootprintParameters(), SCH_EDITOR_CONTROL::updatePastedSymbol(), and SCH_SHEET_LIST::UpdateSymbolInstanceData().
bool KIID_PATH::EndsWith | ( | const KIID_PATH & | aPath | ) | const |
Test if aPath from the last path towards the first path.
This is useful for testing for existing schematic symbol and sheet instances when copying or adding a new sheet that is lower in the hierarchy than the current path.
aPath | is the path to compare this path against. |
Definition at line 327 of file kiid.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_EDITOR_CONTROL::updatePastedSymbol().
bool KIID_PATH::MakeRelativeTo | ( | const KIID_PATH & | aPath | ) |
Definition at line 303 of file kiid.cpp.
References copy.
Referenced by SCH_IO_KICAD_SEXPR::saveSymbol().
|
inline |
|
inline |
|
inline |