KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIID_PATH Class Reference

#include <kiid.h>

Inheritance diagram for KIID_PATH:

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. More...
 
wxString AsString () const
 
bool operator== (KIID_PATH const &rhs) const
 
bool operator< (KIID_PATH const &rhs) const
 

Detailed Description

Definition at line 140 of file kiid.h.

Constructor & Destructor Documentation

◆ KIID_PATH() [1/2]

KIID_PATH::KIID_PATH ( )
inline

Definition at line 143 of file kiid.h.

◆ KIID_PATH() [2/2]

KIID_PATH::KIID_PATH ( const wxString &  aString)

Definition at line 307 of file kiid.cpp.

Member Function Documentation

◆ AsString()

◆ EndsWith()

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.

Parameters
aPathis the path to compare this path against.
Returns
true if this path ends with aPath or false if it does not.

Definition at line 338 of file kiid.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ MakeRelativeTo()

bool KIID_PATH::MakeRelativeTo ( const KIID_PATH aPath)

Definition at line 317 of file kiid.cpp.

References AsString(), and copy.

◆ operator<()

bool KIID_PATH::operator< ( KIID_PATH const &  rhs) const
inline

Definition at line 178 of file kiid.h.

◆ operator==()

bool KIID_PATH::operator== ( KIID_PATH const &  rhs) const
inline

Definition at line 164 of file kiid.h.


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