KiCad PCB EDA Suite
|
#include <iostream>
#include <unordered_map>
#include <charconv>
#include <base_units.h>
#include <ki_exception.h>
#include <wx/log.h>
#include "sch_io/altium/altium_parser_sch.h"
#include "io/altium/altium_binary_parser.h"
#include "io/altium/altium_props_utils.h"
Go to the source code of this file.
Functions | |
ALTIUM_SCH_RECORD | ReadRecord (const std::map< wxString, wxString > &aProps) |
constexpr int | Altium2KiCadUnit (const int val, const int frac) |
int | ReadKiCadUnitFrac (const std::map< wxString, wxString > &aProps, const wxString &aKey) |
int | ReadKiCadUnitFrac1 (const std::map< wxString, wxString > &aProps, const wxString &aKey) |
int | ReadOwnerIndex (const std::map< wxString, wxString > &aProperties) |
int | ReadOwnerPartId (const std::map< wxString, wxString > &aProperties) |
template<typename T > | |
T | ReadEnum (const std::map< wxString, wxString > &aProps, const wxString &aKey, int aLower, int aUpper, T aDefault) |
VECTOR2I | ASchSheetGetSize (ASCH_SHEET_SIZE aSheetSize) |
|
constexpr |
Definition at line 46 of file altium_parser_sch.cpp.
References KiROUND(), EDA_IU_SCALE::MilsToIU(), and schIUScale.
Referenced by ASCH_PIN::ASCH_PIN(), ReadKiCadUnitFrac(), and ReadKiCadUnitFrac1().
VECTOR2I ASchSheetGetSize | ( | ASCH_SHEET_SIZE | aSheetSize | ) |
T ReadEnum | ( | const std::map< wxString, wxString > & | aProps, |
const wxString & | aKey, | ||
int | aLower, | ||
int | aUpper, | ||
T | aDefault | ||
) |
Definition at line 89 of file altium_parser_sch.cpp.
References ALTIUM_PROPS_UTILS::ReadInt().
Referenced by ASCH_LINE::ASCH_LINE(), and ASCH_POLYLINE::ASCH_POLYLINE().
int ReadKiCadUnitFrac | ( | const std::map< wxString, wxString > & | aProps, |
const wxString & | aKey | ||
) |
Definition at line 57 of file altium_parser_sch.cpp.
References Altium2KiCadUnit(), and ALTIUM_PROPS_UTILS::ReadInt().
Referenced by ASCH_ARC::ASCH_ARC(), ASCH_BEZIER::ASCH_BEZIER(), ASCH_BORDER_INTERFACE::ASCH_BORDER_INTERFACE(), ASCH_BUS::ASCH_BUS(), ASCH_BUS_ENTRY::ASCH_BUS_ENTRY(), ASCH_DESIGNATOR::ASCH_DESIGNATOR(), ASCH_ELLIPSE::ASCH_ELLIPSE(), ASCH_FILE_NAME::ASCH_FILE_NAME(), ASCH_HARNESS_CONNECTOR::ASCH_HARNESS_CONNECTOR(), ASCH_HARNESS_TYPE::ASCH_HARNESS_TYPE(), ASCH_IMAGE::ASCH_IMAGE(), ASCH_JUNCTION::ASCH_JUNCTION(), ASCH_LABEL::ASCH_LABEL(), ASCH_LINE::ASCH_LINE(), ASCH_NET_LABEL::ASCH_NET_LABEL(), ASCH_NO_ERC::ASCH_NO_ERC(), ASCH_PARAMETER::ASCH_PARAMETER(), ASCH_POLYGON::ASCH_POLYGON(), ASCH_POLYLINE::ASCH_POLYLINE(), ASCH_PORT::ASCH_PORT(), ASCH_POWER_PORT::ASCH_POWER_PORT(), ASCH_RECTANGLE::ASCH_RECTANGLE(), ASCH_ROUND_RECTANGLE::ASCH_ROUND_RECTANGLE(), ASCH_SHEET::ASCH_SHEET(), ASCH_SHEET_FONT::ASCH_SHEET_FONT(), ASCH_SHEET_NAME::ASCH_SHEET_NAME(), ASCH_SHEET_SYMBOL::ASCH_SHEET_SYMBOL(), ASCH_SIGNAL_HARNESS::ASCH_SIGNAL_HARNESS(), ASCH_SYMBOL::ASCH_SYMBOL(), ASCH_TEXT_FRAME::ASCH_TEXT_FRAME(), ASCH_WIRE::ASCH_WIRE(), and BOOST_AUTO_TEST_CASE().
int ReadKiCadUnitFrac1 | ( | const std::map< wxString, wxString > & | aProps, |
const wxString & | aKey | ||
) |
Definition at line 66 of file altium_parser_sch.cpp.
References Altium2KiCadUnit(), and ALTIUM_PROPS_UTILS::ReadInt().
Referenced by ASCH_HARNESS_ENTRY::ASCH_HARNESS_ENTRY(), and ASCH_SHEET_ENTRY::ASCH_SHEET_ENTRY().
int ReadOwnerIndex | ( | const std::map< wxString, wxString > & | aProperties | ) |
Definition at line 76 of file altium_parser_sch.cpp.
References ALTIUM_COMPONENT_NONE, and ALTIUM_PROPS_UTILS::ReadInt().
Referenced by ASCH_OWNER_INTERFACE::ASCH_OWNER_INTERFACE().
int ReadOwnerPartId | ( | const std::map< wxString, wxString > & | aProperties | ) |
Definition at line 82 of file altium_parser_sch.cpp.
References ALTIUM_COMPONENT_NONE, and ALTIUM_PROPS_UTILS::ReadInt().
Referenced by ASCH_OWNER_INTERFACE::ASCH_OWNER_INTERFACE().
ALTIUM_SCH_RECORD ReadRecord | ( | const std::map< wxString, wxString > & | aProps | ) |
Definition at line 39 of file altium_parser_sch.cpp.
References ALTIUM_PROPS_UTILS::ReadInt().
Referenced by ASCH_ARC::ASCH_ARC(), ASCH_BEZIER::ASCH_BEZIER(), ASCH_BUS::ASCH_BUS(), ASCH_BUS_ENTRY::ASCH_BUS_ENTRY(), ASCH_DESIGNATOR::ASCH_DESIGNATOR(), ASCH_ELLIPSE::ASCH_ELLIPSE(), ASCH_FILE_NAME::ASCH_FILE_NAME(), ASCH_HARNESS_CONNECTOR::ASCH_HARNESS_CONNECTOR(), ASCH_HARNESS_ENTRY::ASCH_HARNESS_ENTRY(), ASCH_HARNESS_TYPE::ASCH_HARNESS_TYPE(), ASCH_HYPERLINK::ASCH_HYPERLINK(), ASCH_IMAGE::ASCH_IMAGE(), ASCH_IMPLEMENTATION::ASCH_IMPLEMENTATION(), ASCH_IMPLEMENTATION_LIST::ASCH_IMPLEMENTATION_LIST(), ASCH_JUNCTION::ASCH_JUNCTION(), ASCH_LABEL::ASCH_LABEL(), ASCH_LINE::ASCH_LINE(), ASCH_NET_LABEL::ASCH_NET_LABEL(), ASCH_NO_ERC::ASCH_NO_ERC(), ASCH_NOTE::ASCH_NOTE(), ASCH_PARAMETER::ASCH_PARAMETER(), ASCH_PIN::ASCH_PIN(), ASCH_POLYGON::ASCH_POLYGON(), ASCH_POLYLINE::ASCH_POLYLINE(), ASCH_PORT::ASCH_PORT(), ASCH_POWER_PORT::ASCH_POWER_PORT(), ASCH_RECTANGLE::ASCH_RECTANGLE(), ASCH_ROUND_RECTANGLE::ASCH_ROUND_RECTANGLE(), ASCH_SHEET::ASCH_SHEET(), ASCH_SHEET_ENTRY::ASCH_SHEET_ENTRY(), ASCH_SHEET_FONT::ASCH_SHEET_FONT(), ASCH_SHEET_NAME::ASCH_SHEET_NAME(), ASCH_SHEET_SYMBOL::ASCH_SHEET_SYMBOL(), ASCH_SIGNAL_HARNESS::ASCH_SIGNAL_HARNESS(), ASCH_SYMBOL::ASCH_SYMBOL(), ASCH_TEMPLATE::ASCH_TEMPLATE(), ASCH_TEXT_FRAME::ASCH_TEXT_FRAME(), and ASCH_WIRE::ASCH_WIRE().