39#include <compoundfilereader.h>
74 const std::map<ALTIUM_PCB_DIR, std::string> mapping = {
75 { ALTIUM_PCB_DIR::FILE_HEADER,
"FileHeader" },
76 { ALTIUM_PCB_DIR::ARCS6,
"1CEEB63FB33847F8AFC4485F64735E" },
77 { ALTIUM_PCB_DIR::BOARD6,
"96B09F5C6CEE434FBCE0DEB3E88E70" },
78 { ALTIUM_PCB_DIR::BOARDREGIONS,
"E3A544335C30403A991912052C936F" },
79 { ALTIUM_PCB_DIR::CLASSES6,
"4F71DD45B09143988210841EA1C28D" },
80 { ALTIUM_PCB_DIR::COMPONENTS6,
"F9D060ACC7DD4A85BC73CB785BAC81" },
81 { ALTIUM_PCB_DIR::COMPONENTBODIES6,
"44D9487C98CE4F0EB46AB6E9CDAF40" },
82 { ALTIUM_PCB_DIR::DIMENSIONS6,
"068B9422DBB241258BA2DE9A6BA1A6" },
83 { ALTIUM_PCB_DIR::FILLS6,
"6FFE038462A940E9B422EFC8F5D85E" },
84 { ALTIUM_PCB_DIR::MODELS,
"0DB009C021D946C88F1B3A32DAE94B" },
85 { ALTIUM_PCB_DIR::NETS6,
"35D7CF51BB9B4875B3A138B32D80DC" },
86 { ALTIUM_PCB_DIR::PADS6,
"4F501041A9BC4A06BDBDAB67D3820E" },
87 { ALTIUM_PCB_DIR::POLYGONS6,
"A1931C8B0B084A61AA45146575FDD3" },
88 { ALTIUM_PCB_DIR::REGIONS6,
"F513A5885418472886D3EF18A09E46" },
89 { ALTIUM_PCB_DIR::RULES6,
"C27718A40C94421388FAE5BD7785D7" },
90 { ALTIUM_PCB_DIR::SHAPEBASEDREGIONS6,
"BDAA2C70289849078C8EBEEC7F0848" },
91 { ALTIUM_PCB_DIR::TEXTS6,
"A34BC67C2A5F408D8F377378C5C5E2" },
92 { ALTIUM_PCB_DIR::TRACKS6,
"412A754DBB864645BF01CD6A80C358" },
93 { ALTIUM_PCB_DIR::VIAS6,
"C87A685A0EFA4A90BEEFD666198B56" },
94 { ALTIUM_PCB_DIR::WIDESTRINGS6,
"C1C6540EA23C48D3BF8F9A4ABB9D6D" }
104 pcb.
Parse( altiumPcbFile, mapping );
106 catch( CFB::CFBException& exception )
void Parse(const ALTIUM_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.
bool CanReadBoard(const wxString &aFileName) const override
Checks if this PCB_IO can read the specified board file.
~PCB_IO_ALTIUM_CIRCUIT_MAKER()
BOARD * LoadBoard(const wxString &aFileName, BOARD *aAppendToMe, const STRING_UTF8_MAP *aProperties, PROJECT *aProject=nullptr) override
Load information from some input file format that this PCB_IO implementation knows about into either ...
PCB_IO_ALTIUM_CIRCUIT_MAKER()
Pcbnew PLUGIN for Altium *.PcbDoc format.
static bool checkFileHeader(const wxString &aFileName)
A base class that BOARD loading and saving plugins should derive from.
BOARD * m_board
The board BOARD being worked on, no ownership here.
const STRING_UTF8_MAP * m_props
Properties passed via Save() or Load(), no ownership, may be NULL.
virtual bool CanReadBoard(const wxString &aFileName) const
Checks if this PCB_IO can read the specified board file.
Container for project specific data.
A name/value tuple with unique names and optional values.
#define THROW_IO_ERROR(msg)