35#include <wx/filename.h>
36#include <wx/xml/xml.h>
60 const std::map<std::string, UTF8>* aProperties,
PROJECT* aProject )
70 m_board->SetFileName( aFileName );
77 pcb.
ParseBoard(
nullptr, &xmlDoc, wxT(
"PCB" ) );
Information pertinent to a Pcbnew printed circuit board.
REPORTER * m_reporter
Reporter to log errors/warnings to, may be nullptr.
void SetReporter(REPORTER *aReporter)
void ParseBoard(wxStatusBar *aStatusBar, wxXmlDocument *aXmlDoc, const wxString &aActualConversion)
void AddToBoard(FOOTPRINT *aFootprint=nullptr) override
BOARD * LoadBoard(const wxString &aFileName, BOARD *aAppendToMe, const std::map< std::string, UTF8 > *aProperties=nullptr, 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.
BOARD * m_board
The board BOARD being worked on, no ownership here.
PCB_IO(const wxString &aName)
const std::map< std::string, UTF8 > * m_props
Properties passed via Save() or Load(), no ownership, may be NULL.
Container for project specific data.
bool FileMatchesFormat(const wxString &aFileName, const std::string &aSection)
Check that a file is ACCEL_ASCII and, when aSection is not empty, that it contains the given section ...
void LoadInputFile(const wxString &aFileName, wxXmlDocument *aXmlDoc)