39#include <compoundfilereader.h>
56 return wxT(
"Altium Circuit Studio" );
89 const std::map<ALTIUM_PCB_DIR, std::string> mapping = {
90 { ALTIUM_PCB_DIR::FILE_HEADER,
"FileHeader" },
91 { ALTIUM_PCB_DIR::ARCS6,
"00C595EB90524FFC8C3BD9670020A2" },
92 { ALTIUM_PCB_DIR::BOARD6,
"88857D7F1DF64F7BBB61848C965636" },
93 { ALTIUM_PCB_DIR::BOARDREGIONS,
"8957CF30F167408D9D263D23FE7C89" },
94 { ALTIUM_PCB_DIR::CLASSES6,
"847EFBF87A5149B1AA326A52AD6357" },
95 { ALTIUM_PCB_DIR::COMPONENTS6,
"465416896A15486999A39C643935D2" },
96 { ALTIUM_PCB_DIR::COMPONENTBODIES6,
"1849D9B5512D452A93EABF4E40B122" },
97 { ALTIUM_PCB_DIR::DIMENSIONS6,
"16C81DBC13C447FF8B42A426677F3C" },
98 { ALTIUM_PCB_DIR::FILLS6,
"4E83BDC3253747F08E9006D7F57020" },
99 { ALTIUM_PCB_DIR::MODELS,
"C0F7599ECC6A4D648DF5BB557679AF" },
100 { ALTIUM_PCB_DIR::NETS6,
"D95A0DA2FE9047779A5194C127F30B" },
101 { ALTIUM_PCB_DIR::PADS6,
"47D69BC5107A4B8DB8DAA23E39C238" },
102 { ALTIUM_PCB_DIR::POLYGONS6,
"D7038392280E4E229B9D9B5426B295" },
103 { ALTIUM_PCB_DIR::REGIONS6,
"FFDDC21382BB42FE8A7D0C328D272C" },
104 { ALTIUM_PCB_DIR::RULES6,
"48B2FA96DB7546818752B34373D6C6" },
105 { ALTIUM_PCB_DIR::SHAPEBASEDREGIONS6,
"D5F54B536E124FB89E2D51B1121508" },
106 { ALTIUM_PCB_DIR::TEXTS6,
"349ABBB211DB4F5B8AE41B1B49555A" },
107 { ALTIUM_PCB_DIR::TRACKS6,
"530C20C225354B858B2578CAB8C08D" },
108 { ALTIUM_PCB_DIR::VIAS6,
"CA5F5989BCDB404DA70A9D1D3D5758" },
109 { ALTIUM_PCB_DIR::WIDESTRINGS6,
"87FBF0C5BC194B909FF42199450A76" }
119 pcb.
Parse( altiumPcbFile, mapping );
121 catch( CFB::CFBException& exception )
PLUGIN_FILE_DESC GetBoardFileDesc() const override
Returns board file description for the PLUGIN.
~ALTIUM_CIRCUIT_STUDIO_PLUGIN()
ALTIUM_CIRCUIT_STUDIO_PLUGIN()
BOARD * LoadBoard(const wxString &aFileName, BOARD *aAppendToMe, const STRING_UTF8_MAP *aProperties, PROJECT *aProject, PROGRESS_REPORTER *aProgressReporter=nullptr) override
Load information from some input file format that this PLUGIN implementation knows about into either ...
const STRING_UTF8_MAP * m_props
bool CanReadBoard(const wxString &aFileName) const override
Checks if this PLUGIN can read the specified board file.
const wxString PluginName() const override
Return a brief hard coded name for this PLUGIN.
static bool checkFileHeader(const wxString &aFileName)
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)
virtual bool CanReadBoard(const wxString &aFileName) const
Checks if this PLUGIN can read the specified board file.
A progress reporter interface for use in multi-threaded environments.
Container for project specific data.
A name/value tuple with unique names and optional values.
#define THROW_IO_ERROR(msg)
Container that describes file type info.