KiCad PCB EDA Suite
|
Classes | |
struct | BLOB |
struct | PCB_ATTR |
struct | PIN_INFO |
struct | POURED |
struct | PRJ_BOARD |
struct | PRJ_DEVICE |
struct | PRJ_FOOTPRINT |
struct | PRJ_SCHEMATIC |
struct | PRJ_SHEET |
struct | PRJ_SYMBOL |
struct | SCH_ATTR |
struct | SCH_COMPONENT |
struct | SCH_WIRE |
struct | SYM_HEAD |
struct | SYM_INFO |
struct | SYM_PIN |
Enumerations | |
enum class | SYMBOL_TYPE { NORMAL = 2 , POWER_PORT = 18 , NETPORT = 19 , SHEET_SYMBOL = 20 , SHORT = 22 } |
enum class | FOOTPRINT_TYPE { NORMAL = 4 } |
Functions | |
wxString | ShortenLibName (wxString aProjectName) |
LIB_ID | ToKiCadLibID (const wxString &aLibName, const wxString &aLibReference) |
std::vector< IMPORT_PROJECT_DESC > | ProjectToSelectorDialog (const nlohmann::json &aProject, bool aPcbOnly=false, bool aSchOnly=false) |
nlohmann::json | FindJsonFile (const wxString &aZipFileName, const std::set< wxString > &aFileNames) |
nlohmann::json | ReadProjectOrDeviceFile (const wxString &aZipFileName) |
void | IterateZipFiles (const wxString &aFileName, std::function< bool(const wxString &, const wxString &, wxInputStream &)> aCallback) |
std::vector< nlohmann::json > | ParseJsonLines (wxInputStream &aInput, const wxString &aSource) |
std::vector< std::vector< nlohmann::json > > | ParseJsonLinesWithSeparation (wxInputStream &aInput, const wxString &aSource) |
Multiple document types (e.g. | |
void | from_json (const nlohmann::json &j, EASYEDAPRO::SCH_ATTR &d) |
void | from_json (const nlohmann::json &j, EASYEDAPRO::PCB_ATTR &d) |
void | from_json (const nlohmann::json &j, EASYEDAPRO::SCH_COMPONENT &d) |
void | from_json (const nlohmann::json &j, EASYEDAPRO::SCH_WIRE &d) |
void | from_json (const nlohmann::json &j, EASYEDAPRO::SYM_PIN &d) |
void | from_json (const nlohmann::json &j, EASYEDAPRO::SYM_HEAD &d) |
void | from_json (const nlohmann::json &j, EASYEDAPRO::PRJ_SHEET &d) |
void | from_json (const nlohmann::json &j, EASYEDAPRO::PRJ_SCHEMATIC &d) |
void | from_json (const nlohmann::json &j, EASYEDAPRO::PRJ_BOARD &d) |
void | from_json (const nlohmann::json &j, EASYEDAPRO::PRJ_SYMBOL &d) |
void | from_json (const nlohmann::json &j, EASYEDAPRO::PRJ_FOOTPRINT &d) |
void | from_json (const nlohmann::json &j, EASYEDAPRO::PRJ_DEVICE &d) |
void | from_json (const nlohmann::json &j, EASYEDAPRO::BLOB &d) |
void | from_json (const nlohmann::json &j, EASYEDAPRO::POURED &d) |
Variables | |
static const bool | IMPORT_POURED = true |
static const bool | IMPORT_POURED_ECOP = false |
|
strong |
Enumerator | |
---|---|
NORMAL |
Definition at line 56 of file easyedapro_parser.h.
|
strong |
Enumerator | |
---|---|
NORMAL | |
POWER_PORT | |
NETPORT | |
SHEET_SYMBOL | |
SHORT |
Definition at line 47 of file easyedapro_parser.h.
nlohmann::json EASYEDAPRO::FindJsonFile | ( | const wxString & | aZipFileName, |
const std::set< wxString > & | aFileNames | ||
) |
Definition at line 143 of file easyedapro_import_utils.cpp.
References _, name, THROW_IO_ERROR, and zip.
Referenced by ReadProjectOrDeviceFile().
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::BLOB & | d | ||
) |
Definition at line 279 of file easyedapro_parser.cpp.
References EASYEDAPRO::BLOB::objectId, and EASYEDAPRO::BLOB::url.
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::PCB_ATTR & | d | ||
) |
Definition at line 63 of file easyedapro_parser.cpp.
References EASYEDAPRO::PCB_ATTR::fontName, EASYEDAPRO::PCB_ATTR::height, EASYEDAPRO::PCB_ATTR::id, EASYEDAPRO::PCB_ATTR::inverted, EASYEDAPRO::PCB_ATTR::key, EASYEDAPRO::PCB_ATTR::keyVisible, EASYEDAPRO::PCB_ATTR::layer, EASYEDAPRO::PCB_ATTR::parentId, EASYEDAPRO::PCB_ATTR::position, EASYEDAPRO::PCB_ATTR::rotation, EASYEDAPRO::PCB_ATTR::strokeWidth, EASYEDAPRO::PCB_ATTR::textOrigin, EASYEDAPRO::PCB_ATTR::value, and EASYEDAPRO::PCB_ATTR::valVisible.
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::POURED & | d | ||
) |
Definition at line 285 of file easyedapro_parser.cpp.
References EASYEDAPRO::POURED::isPoly, EASYEDAPRO::POURED::parentId, EASYEDAPRO::POURED::polyData, EASYEDAPRO::POURED::pouredId, and EASYEDAPRO::POURED::unki.
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::PRJ_BOARD & | d | ||
) |
Definition at line 189 of file easyedapro_parser.cpp.
References EASYEDAPRO::PRJ_BOARD::pcb, and EASYEDAPRO::PRJ_BOARD::schematic.
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::PRJ_DEVICE & | d | ||
) |
Definition at line 251 of file easyedapro_parser.cpp.
References EASYEDAPRO::PRJ_DEVICE::attributes, EASYEDAPRO::PRJ_DEVICE::custom_tags, EASYEDAPRO::PRJ_DEVICE::description, EASYEDAPRO::PRJ_DEVICE::source, EASYEDAPRO::PRJ_DEVICE::tags, EASYEDAPRO::PRJ_DEVICE::title, and EASYEDAPRO::PRJ_DEVICE::version.
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::PRJ_FOOTPRINT & | d | ||
) |
Definition at line 223 of file easyedapro_parser.cpp.
References EASYEDAPRO::PRJ_FOOTPRINT::custom_tags, EASYEDAPRO::PRJ_FOOTPRINT::desc, EASYEDAPRO::PRJ_FOOTPRINT::source, EASYEDAPRO::PRJ_FOOTPRINT::tags, EASYEDAPRO::PRJ_FOOTPRINT::title, EASYEDAPRO::PRJ_FOOTPRINT::type, and EASYEDAPRO::PRJ_FOOTPRINT::version.
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::PRJ_SCHEMATIC & | d | ||
) |
Definition at line 183 of file easyedapro_parser.cpp.
References EASYEDAPRO::PRJ_SCHEMATIC::name, and EASYEDAPRO::PRJ_SCHEMATIC::sheets.
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::PRJ_SHEET & | d | ||
) |
Definition at line 176 of file easyedapro_parser.cpp.
References EASYEDAPRO::PRJ_SHEET::id, EASYEDAPRO::PRJ_SHEET::name, and EASYEDAPRO::PRJ_SHEET::uuid.
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::PRJ_SYMBOL & | d | ||
) |
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::SCH_ATTR & | d | ||
) |
Definition at line 34 of file easyedapro_parser.cpp.
References EASYEDAPRO::SCH_ATTR::fontStyle, EASYEDAPRO::SCH_ATTR::id, EASYEDAPRO::SCH_ATTR::key, EASYEDAPRO::SCH_ATTR::keyVisible, EASYEDAPRO::SCH_ATTR::parentId, EASYEDAPRO::SCH_ATTR::position, EASYEDAPRO::SCH_ATTR::rotation, EASYEDAPRO::SCH_ATTR::value, and EASYEDAPRO::SCH_ATTR::valVisible.
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::SCH_COMPONENT & | d | ||
) |
Definition at line 109 of file easyedapro_parser.cpp.
References EASYEDAPRO::SCH_COMPONENT::customProps, EASYEDAPRO::SCH_COMPONENT::id, EASYEDAPRO::SCH_COMPONENT::mirror, EASYEDAPRO::SCH_COMPONENT::name, EASYEDAPRO::SCH_COMPONENT::position, EASYEDAPRO::SCH_COMPONENT::rotation, EASYEDAPRO::SCH_COMPONENT::unk1, and EASYEDAPRO::SCH_COMPONENT::unk2.
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::SCH_WIRE & | d | ||
) |
Definition at line 134 of file easyedapro_parser.cpp.
References EASYEDAPRO::SCH_WIRE::geometry, EASYEDAPRO::SCH_WIRE::id, and EASYEDAPRO::SCH_WIRE::lineStyle.
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::SYM_HEAD & | d | ||
) |
Definition at line 161 of file easyedapro_parser.cpp.
References config, EASYEDAPRO::SYM_HEAD::maxId, EASYEDAPRO::SYM_HEAD::origin, EASYEDAPRO::SYM_HEAD::symbolType, EASYEDAPRO::SYM_HEAD::version, VECTOR2< T >::x, and VECTOR2< T >::y.
void EASYEDAPRO::from_json | ( | const nlohmann::json & | j, |
EASYEDAPRO::SYM_PIN & | d | ||
) |
Definition at line 144 of file easyedapro_parser.cpp.
References EASYEDAPRO::SYM_PIN::id, EASYEDAPRO::SYM_PIN::inverted, EASYEDAPRO::SYM_PIN::length, EASYEDAPRO::SYM_PIN::position, and EASYEDAPRO::SYM_PIN::rotation.
void EASYEDAPRO::IterateZipFiles | ( | const wxString & | aFileName, |
std::function< bool(const wxString &, const wxString &, wxInputStream &)> | aCallback | ||
) |
Definition at line 200 of file easyedapro_import_utils.cpp.
References _, name, THROW_IO_ERROR, and zip.
Referenced by PCB_IO_EASYEDAPRO::FootprintLoad(), SCH_IO_EASYEDAPRO::LoadAllDataFromProject(), PCB_IO_EASYEDAPRO::LoadAllDataFromProject(), PCB_IO_EASYEDAPRO::LoadBoard(), SCH_IO_EASYEDAPRO::LoadSchematicFile(), and loadSymbol().
std::vector< nlohmann::json > EASYEDAPRO::ParseJsonLines | ( | wxInputStream & | aInput, |
const wxString & | aSource | ||
) |
Definition at line 236 of file easyedapro_import_utils.cpp.
References _.
Referenced by PCB_IO_EASYEDAPRO::FootprintLoad(), SCH_IO_EASYEDAPRO::LoadAllDataFromProject(), PCB_IO_EASYEDAPRO::LoadAllDataFromProject(), and SCH_IO_EASYEDAPRO::LoadSchematicFile().
std::vector< std::vector< nlohmann::json > > EASYEDAPRO::ParseJsonLinesWithSeparation | ( | wxInputStream & | aInput, |
const wxString & | aSource | ||
) |
Multiple document types (e.g.
footprint and PCB) can be put into a single file, separated by empty line.
Definition at line 274 of file easyedapro_import_utils.cpp.
References _.
Referenced by PCB_IO_EASYEDAPRO::LoadBoard().
std::vector< IMPORT_PROJECT_DESC > EASYEDAPRO::ProjectToSelectorDialog | ( | const nlohmann::json & | aProject, |
bool | aPcbOnly = false , |
||
bool | aSchOnly = false |
||
) |
Definition at line 69 of file easyedapro_import_utils.cpp.
References IMPORT_PROJECT_DESC::ComboId, IMPORT_PROJECT_DESC::ComboName, IMPORT_PROJECT_DESC::PCBId, IMPORT_PROJECT_DESC::PCBName, IMPORT_PROJECT_DESC::SchematicId, and IMPORT_PROJECT_DESC::SchematicName.
Referenced by IMPORT_PROJ_HELPER::EasyEDAProProjectHandler(), PCB_IO_EASYEDAPRO::LoadBoard(), and SCH_IO_EASYEDAPRO::LoadSchematicFile().
nlohmann::json EASYEDAPRO::ReadProjectOrDeviceFile | ( | const wxString & | aZipFileName | ) |
Definition at line 183 of file easyedapro_import_utils.cpp.
References _, FindJsonFile(), and THROW_IO_ERROR.
Referenced by IMPORT_PROJ_HELPER::EasyEDAProProjectHandler(), SCH_IO_EASYEDAPRO::EnumerateSymbolLib(), PCB_IO_EASYEDAPRO::FootprintEnumerate(), PCB_IO_EASYEDAPRO::FootprintLoad(), SCH_IO_EASYEDAPRO::LoadAllDataFromProject(), PCB_IO_EASYEDAPRO::LoadBoard(), SCH_IO_EASYEDAPRO::LoadSchematicFile(), and SCH_IO_EASYEDAPRO::LoadSymbol().
wxString EASYEDAPRO::ShortenLibName | ( | wxString | aProjectName | ) |
Definition at line 43 of file easyedapro_import_utils.cpp.
References LIB_ID::FixIllegalChars().
Referenced by SCH_IO_EASYEDAPRO::LoadAllDataFromProject(), PCB_IO_EASYEDAPRO::LoadAllDataFromProject(), PCB_IO_EASYEDAPRO::LoadBoard(), and SCH_IO_EASYEDAPRO::LoadSchematicFile().
LIB_ID EASYEDAPRO::ToKiCadLibID | ( | const wxString & | aLibName, |
const wxString & | aLibReference | ||
) |
Definition at line 54 of file easyedapro_import_utils.cpp.
References CTX_LIBID, EscapeString(), LIB_ID::FixIllegalChars(), and LIB_ID::Parse().
Referenced by PCB_IO_EASYEDAPRO::FootprintLoad(), SCH_IO_EASYEDAPRO::LoadAllDataFromProject(), PCB_IO_EASYEDAPRO::LoadAllDataFromProject(), PCB_IO_EASYEDAPRO::LoadBoard(), loadSymbol(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), and SCH_EASYEDAPRO_PARSER::ParseSchematic().
|
static |
Definition at line 44 of file easyedapro_parser.h.
Referenced by PCB_IO_EASYEDAPRO_PARSER::ParseBoard().
|
static |
Definition at line 45 of file easyedapro_parser.h.
Referenced by PCB_IO_EASYEDAPRO::LoadAllDataFromProject().