|
KiCad PCB EDA Suite
|
#include <wx/filename.h>#include <wx/string.h>Go to the source code of this file.
Functions | |
| bool | SaveImportedDesignRules (const wxString &aRules, const wxFileName &aBoardPath, REPORTER &aReporter) |
| Save the custom rules an importer derived beside the board it produced. | |
| bool SaveImportedDesignRules | ( | const wxString & | aRules, |
| const wxFileName & | aBoardPath, | ||
| REPORTER & | aReporter ) |
Save the custom rules an importer derived beside the board it produced.
An existing rules file is the user's and is never replaced.
Shared by the board editor import and the kicad-cli import job.
| [in] | aRules | is the rules text, nothing is written when it is empty. |
| [in] | aBoardPath | is the board the rules belong to, the rules take its name. |
| [in] | aReporter | receives a warning when the rules are not written. |
Definition at line 29 of file import_design_rules.cpp.
References _, FILEEXT::DesignRulesFileExtension, REPORTER::Report(), and RPT_SEVERITY_WARNING.
Referenced by BOOST_AUTO_TEST_CASE(), and PCB_EDIT_FRAME::OpenProjectFiles().