33 const std::string
id =
"00000000-0000-0000-0000-0000000000";
34 const std::string a =
"/" +
id +
"b1/";
35 const std::string b =
"/" +
id +
"b2/";
36 const std::string c =
"/" +
id +
"b3/";
41 [&](
const std::string& aSheet,
const char* aSymbol,
const wxString& aRef )
52 + c +
"\t\n" + b +
"\t_M2\n" + a +
"\t_M1\n/\t\n"
53 + b +
id +
"a5\t_M1\n" );
56 KIID first = add( a,
"a1", wxS(
"R4_M1" ) );
57 KIID second = add( b,
"a1", wxS(
"R4_M2" ) );
58 KIID stale = add( a,
"a3", wxS(
"R6" ) );
59 KIID bare = add( c,
"a1", wxS(
"R4" ) );
60 KIID twin = add(
"/",
"a4", wxS(
"R8" ) );
61 add( c,
"a4", wxS(
"R8" ) );
62 KIID package = add( b, "a5", wxS( "U9_M1" ) );
66 BOOST_CHECK( splits[first].Representative == bare && splits[second].Representative == bare );
83 "22222222-2222-2222-2222-222222222222" ) ) );
93 suffixes[sheet.
AsString() + wxS(
"/" )].Suffix = wxS(
"2" );
Information pertinent to a Pcbnew printed circuit board.
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT, bool aSkipConnectivity=false) override
Removes an item from the container.
const FOOTPRINTS & Footprints() const
wxString AsString() const
#define MAIL_SCH_REF_SUFFIXES_TAG
First line of a MAIL_SCH_GET_REF_SUFFIXES reply, so a schematic with no sheets still answers.
std::optional< SHEET_REF_SUFFIXES > ParseRefSuffixes(const std::string &aPayload)
std::map< KIID, FOOTPRINT_REF_SPLIT > SplitRefSuffixes(const FOOTPRINTS &aFootprints, const SHEET_REF_SUFFIXES *aSuffixes, bool aSuffixMode)
Split each footprint reference into its base and sheet suffix.
std::map< wxString, SHEET_REF_SUFFIX > SHEET_REF_SUFFIXES
Sheet suffixes keyed by the sheet path string that starts the paths of its footprints,...
static std::vector< std::string > split(const std::string &aStr, const std::string &aDelim)
Split the input string into a vector of output strings.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_REQUIRE(res.columns()==1)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(CopiesShareTheFirstPagesBase)