KiCad PCB EDA Suite
Loading...
Searching...
No Matches
altium_parser_sch.cpp File Reference
#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 >
ReadEnum (const std::map< wxString, wxString > &aProps, const wxString &aKey, int aLower, int aUpper, T aDefault)
 
VECTOR2I ASchSheetGetSize (ASCH_SHEET_SIZE aSheetSize)
 

Function Documentation

◆ Altium2KiCadUnit()

constexpr int Altium2KiCadUnit ( const int  val,
const int  frac 
)
constexpr

◆ ASchSheetGetSize()

VECTOR2I ASchSheetGetSize ( ASCH_SHEET_SIZE  aSheetSize)

Definition at line 810 of file altium_parser_sch.cpp.

References A, A0, A1, A2, A3, A4, B, C, D, E, LEGAL, LETTER, ORCAD_A, ORCAD_B, ORCAD_C, ORCAD_D, ORCAD_E, and TABLOID.

◆ ReadEnum()

template<typename T >
T ReadEnum ( const std::map< wxString, wxString > &  aProps,
const wxString &  aKey,
int  aLower,
int  aUpper,
aDefault 
)

◆ ReadKiCadUnitFrac()

◆ ReadKiCadUnitFrac1()

int ReadKiCadUnitFrac1 ( const std::map< wxString, wxString > &  aProps,
const wxString &  aKey 
)

◆ ReadOwnerIndex()

int ReadOwnerIndex ( const std::map< wxString, wxString > &  aProperties)

◆ ReadOwnerPartId()

int ReadOwnerPartId ( const std::map< wxString, wxString > &  aProperties)

◆ ReadRecord()