29#include <boost/test/unit_test.hpp>
49 std::unique_ptr<SCHEMATIC> schematic(
new SCHEMATIC(
nullptr ) );
52 schematic->SetProject( &manager.
Prj() );
53 schematic->CurrentSheet().clear();
54 schematic->CurrentSheet().push_back( &schematic->Root() );
60 SCH_SHEET_LIST sheets = schematic->BuildSheetListSortedByPageNumbers();
61 schematic->ConnectionGraph()->Recalculate( sheets,
true );
71 if( symbol->
GetRef( &
path,
false ) != wxS(
"U1" ) )
76 if(
pin->GetNumber() == wxS(
"1" ) )
77 pin1Conn =
pin->Connection( &
path );
78 else if(
pin->GetNumber() == wxS(
"2" ) )
79 pin2Conn =
pin->Connection( &
path );
Each graphical item can have a SCH_CONNECTION describing its logical connection (to a bus or net).
SCH_SHEET * LoadSchematicFile(const wxString &aFileName, SCHEMATIC *aSchematic, SCH_SHEET *aAppendToMe=nullptr, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Load information from some input file format that this SCH_IO implementation knows about,...
Base class for any item which can be embedded within the SCHEMATIC container class,...
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
std::vector< const SCH_PIN * > GetPins(const SCH_SHEET_PATH *aSheet) const
Retrieve a list of the SCH_PINs for the given sheet path.
const wxString GetRef(const SCH_SHEET_PATH *aSheet, bool aIncludeUnit=false) const override
PROJECT & Prj() const
A helper while we are not MDI-capable – return the one and only project.
bool LoadProject(const wxString &aFullPath, bool aSetActive=true, bool aOverrideLock=false)
Load a project or sets up a new project with a specified path.
std::string GetEeschemaTestDataDir()
Get the configured location of Eeschema test data.
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
BOOST_REQUIRE(res.columns()==1)
BOOST_AUTO_TEST_CASE(CadstarWireOverForeignPin)