30#include <compoundfilereader.h>
64 const std::map<ALTIUM_PCB_DIR, std::string> mapping = {
65 { ALTIUM_PCB_DIR::FILE_HEADER,
"FileHeader" },
66 { ALTIUM_PCB_DIR::ARCS6,
"D2864697BB2D411B857EBD69D74447" },
67 { ALTIUM_PCB_DIR::BOARD6,
"21CE7E3D9BFF41679BACA1184CAF54" },
68 { ALTIUM_PCB_DIR::BOARDREGIONS,
"67075A4119214CE4AB174F9B1A9A41" },
69 { ALTIUM_PCB_DIR::CLASSES6,
"1122D4F14A924F9CA5C2060AF370E0" },
70 { ALTIUM_PCB_DIR::COMPONENTS6,
"208CAE8E44BD43D5B3CCA426D9331B" },
71 { ALTIUM_PCB_DIR::COMPONENTBODIES6,
"6DDF94E6CB364893BED31C189F9AF3" },
72 { ALTIUM_PCB_DIR::DIMENSIONS6,
"6148AE8C77B042798B46830E96BB24" },
73 { ALTIUM_PCB_DIR::FILLS6,
"5944DE0E258C41E2B0B382AC964048" },
74 { ALTIUM_PCB_DIR::MODELS,
"874F98A7E25A48EDAD394EB891E503" },
75 { ALTIUM_PCB_DIR::NETS6,
"0201837ACD434D55B34BBC68B75BAB" },
76 { ALTIUM_PCB_DIR::PADS6,
"E4D0C33E25824886ABC7FEEAE7B521" },
77 { ALTIUM_PCB_DIR::POLYGONS6,
"7ABD4252549749DD8DB16804819AC3" },
78 { ALTIUM_PCB_DIR::REGIONS6,
"6B3892541AB94CD999291D590B5C86" },
79 { ALTIUM_PCB_DIR::RULES6,
"7009830ADF65423FA6CCB73A77E710" },
80 { ALTIUM_PCB_DIR::SHAPEBASEDREGIONS6,
"91241C66300E4490965070BA56F6F7" },
81 { ALTIUM_PCB_DIR::TEXTS6,
"4AF3D139533041489C2A57BBF9890D" },
82 { ALTIUM_PCB_DIR::TRACKS6,
"5D0C6E18E16A4BBFAA256C24B79EAE" },
83 { ALTIUM_PCB_DIR::VIAS6,
"2AF5387F097242D3A1095B6FAC3397" },
84 { ALTIUM_PCB_DIR::WIDESTRINGS6,
"9B378679AF85466C8673A41EE46393" }
123 pcb.
Parse( altiumPcbFile, mapping );
125 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)
PROGRESS_REPORTER * m_progressReporter
Progress reporter to track the progress of the operation, may be nullptr.
static bool checkFileHeader(const wxString &aFileName)
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 ...
bool CanReadBoard(const wxString &aFileName) const override
Checks if this PCB_IO can read the specified board file.
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)