43#include <compoundfilereader.h>
47 PCB_IO( wxS(
"Altium Circuit Studio" ) )
68 const std::map<std::string, UTF8>* aProperties,
82 const std::map<ALTIUM_PCB_DIR, std::string> mapping = {
83 { ALTIUM_PCB_DIR::FILE_HEADER,
"FileHeader" },
84 { ALTIUM_PCB_DIR::ARCS6,
"00C595EB90524FFC8C3BD9670020A2" },
85 { ALTIUM_PCB_DIR::BOARD6,
"88857D7F1DF64F7BBB61848C965636" },
86 { ALTIUM_PCB_DIR::BOARDREGIONS,
"8957CF30F167408D9D263D23FE7C89" },
87 { ALTIUM_PCB_DIR::CLASSES6,
"847EFBF87A5149B1AA326A52AD6357" },
88 { ALTIUM_PCB_DIR::COMPONENTS6,
"465416896A15486999A39C643935D2" },
89 { ALTIUM_PCB_DIR::COMPONENTBODIES6,
"1849D9B5512D452A93EABF4E40B122" },
90 { ALTIUM_PCB_DIR::DIMENSIONS6,
"16C81DBC13C447FF8B42A426677F3C" },
91 { ALTIUM_PCB_DIR::FILLS6,
"4E83BDC3253747F08E9006D7F57020" },
92 { ALTIUM_PCB_DIR::MODELS,
"C0F7599ECC6A4D648DF5BB557679AF" },
93 { ALTIUM_PCB_DIR::NETS6,
"D95A0DA2FE9047779A5194C127F30B" },
94 { ALTIUM_PCB_DIR::PADS6,
"47D69BC5107A4B8DB8DAA23E39C238" },
95 { ALTIUM_PCB_DIR::POLYGONS6,
"D7038392280E4E229B9D9B5426B295" },
96 { ALTIUM_PCB_DIR::REGIONS6,
"FFDDC21382BB42FE8A7D0C328D272C" },
97 { ALTIUM_PCB_DIR::RULES6,
"48B2FA96DB7546818752B34373D6C6" },
98 { ALTIUM_PCB_DIR::SHAPEBASEDREGIONS6,
"D5F54B536E124FB89E2D51B1121508" },
99 { ALTIUM_PCB_DIR::TEXTS6,
"349ABBB211DB4F5B8AE41B1B49555A" },
100 { ALTIUM_PCB_DIR::TRACKS6,
"530C20C225354B858B2578CAB8C08D" },
101 { ALTIUM_PCB_DIR::VIAS6,
"CA5F5989BCDB404DA70A9D1D3D5758" },
102 { ALTIUM_PCB_DIR::WIDESTRINGS6,
"87FBF0C5BC194B909FF42199450A76" }
112 pcb.
Parse( altiumPcbFile, mapping );
114 catch( CFB::CFBException& exception )
void Parse(const ALTIUM_PCB_COMPOUND_FILE &aAltiumPcbFile, const std::map< ALTIUM_PCB_DIR, std::string > &aFileMapping)
Information pertinent to a Pcbnew printed circuit board.
void SetFileName(const wxString &aFileName)
REPORTER * m_reporter
Reporter to log errors/warnings to, may be nullptr.
PROGRESS_REPORTER * m_progressReporter
Progress reporter to track the progress of the operation, may be nullptr.
virtual void RegisterCallback(LAYER_MAPPING_HANDLER aLayerMappingHandler)
Register a different handler to be called when mapping of input layers to KiCad layers occurs.
LAYER_MAPPING_HANDLER m_layer_mapping_handler
Callback to get layer mapping.
PCB_IO_ALTIUM_CIRCUIT_STUDIO()
Pcbnew PLUGIN for Altium *.PcbDoc format.
bool CanReadBoard(const wxString &aFileName) const override
Checks if this PCB_IO can read the specified board file.
BOARD * LoadBoard(const wxString &aFileName, BOARD *aAppendToMe, const std::map< std::string, UTF8 > *aProperties, PROJECT *aProject) override
Load information from some input file format that this PCB_IO implementation knows about into either ...
~PCB_IO_ALTIUM_CIRCUIT_STUDIO()
static bool checkFileHeader(const wxString &aFileName)
static std::map< wxString, PCB_LAYER_ID > DefaultLayerMappingCallback(const std::vector< INPUT_LAYER_DESC > &aInputLayerDescriptionVector)
Return the automapped layers.
A base class that BOARD loading and saving plugins should derive from.
BOARD * m_board
The board BOARD being worked on, no ownership here.
virtual bool CanReadBoard(const wxString &aFileName) const
Checks if this PCB_IO can read the specified board file.
const std::map< std::string, UTF8 > * m_props
Properties passed via Save() or Load(), no ownership, may be NULL.
Container for project specific data.
static REPORTER & GetInstance()
static void SetReporter(REPORTER *aReporter)
Set the reporter to use for reporting font substitution warnings.
#define THROW_IO_ERROR(msg)