The CommandLineInterface class.
More...
#include <commandlineinterface.h>
|
bool | openProject (const QString &projectFile, bool runErc, bool runDrc, const QString &drcSettingsPath, const QStringList &runJobs, bool runAllJobs, const QString &customJobsPath, const QString &customOutDir, const QStringList &exportSchematicsFiles, const QStringList &exportBomFiles, const QStringList &exportBoardBomFiles, const QString &bomAttributes, bool exportPcbFabricationData, const QString &pcbFabricationSettingsPath, const QStringList &exportPnpTopFiles, const QStringList &exportPnpBottomFiles, const QStringList &exportNetlistFiles, const QStringList &boardNames, const QStringList &boardIndices, bool removeOtherBoards, const QStringList &avNames, const QStringList &avIndices, const QString &setDefaultAv, bool save, bool strict) const noexcept |
|
bool | openLibrary (const QString &libDir, bool all, bool runCheck, bool minifyStepFiles, bool save, bool strict) const noexcept |
|
CheckResult | gatherElementCheckMessages (const LibraryBaseElement &element) const |
| Gather validation check messages for a library element.
|
|
QStringList | formatLibraryElementCheckSummary (const CheckResult &checkResult) const |
|
QStringList | formatCheckSummary (int approvedCount, int nonApprovedCount, const QString &indent="") const |
|
void | processLibraryElement (const QString &libDir, TransactionalFileSystem &fs, LibraryBaseElement &element, bool runCheck, bool minifyStepFiles, bool save, bool strict, bool &success) const |
|
bool | openSymbol (const QString &symbolFile, bool runCheck, const QString &exportFile) const noexcept |
|
bool | openPackage (const QString &packageFile, bool runCheck, const QString &exportFile) const noexcept |
|
bool | openStep (const QString &filePath, bool minify, bool tesselate, const QString &saveTo) const noexcept |
|
◆ CommandLineInterface()
◆ ~CommandLineInterface()
◆ execute()
int execute |
( |
const QStringList & |
args | ) |
|
|
noexcept |
◆ openProject()
bool openProject |
( |
const QString & |
projectFile, |
|
|
bool |
runErc, |
|
|
bool |
runDrc, |
|
|
const QString & |
drcSettingsPath, |
|
|
const QStringList & |
runJobs, |
|
|
bool |
runAllJobs, |
|
|
const QString & |
customJobsPath, |
|
|
const QString & |
customOutDir, |
|
|
const QStringList & |
exportSchematicsFiles, |
|
|
const QStringList & |
exportBomFiles, |
|
|
const QStringList & |
exportBoardBomFiles, |
|
|
const QString & |
bomAttributes, |
|
|
bool |
exportPcbFabricationData, |
|
|
const QString & |
pcbFabricationSettingsPath, |
|
|
const QStringList & |
exportPnpTopFiles, |
|
|
const QStringList & |
exportPnpBottomFiles, |
|
|
const QStringList & |
exportNetlistFiles, |
|
|
const QStringList & |
boardNames, |
|
|
const QStringList & |
boardIndices, |
|
|
bool |
removeOtherBoards, |
|
|
const QStringList & |
avNames, |
|
|
const QStringList & |
avIndices, |
|
|
const QString & |
setDefaultAv, |
|
|
bool |
save, |
|
|
bool |
strict |
|
) |
| const |
|
privatenoexcept |
◆ openLibrary()
bool openLibrary |
( |
const QString & |
libDir, |
|
|
bool |
all, |
|
|
bool |
runCheck, |
|
|
bool |
minifyStepFiles, |
|
|
bool |
save, |
|
|
bool |
strict |
|
) |
| const |
|
privatenoexcept |
◆ gatherElementCheckMessages()
Gather validation check messages for a library element.
This function runs validation checks on a library element and separates the results into approved and non-approved messages.
- Parameters
-
element | The library element to check |
- Returns
- CheckResult containing the count of approved messages and a list of non-approved messages
◆ formatLibraryElementCheckSummary()
QStringList formatLibraryElementCheckSummary |
( |
const CheckResult & |
checkResult | ) |
const |
|
private |
◆ formatCheckSummary()
QStringList formatCheckSummary |
( |
int |
approvedCount, |
|
|
int |
nonApprovedCount, |
|
|
const QString & |
indent = "" |
|
) |
| const |
|
private |
◆ processLibraryElement()
◆ openSymbol()
bool openSymbol |
( |
const QString & |
symbolFile, |
|
|
bool |
runCheck, |
|
|
const QString & |
exportFile |
|
) |
| const |
|
privatenoexcept |
◆ openPackage()
bool openPackage |
( |
const QString & |
packageFile, |
|
|
bool |
runCheck, |
|
|
const QString & |
exportFile |
|
) |
| const |
|
privatenoexcept |
◆ openStep()
bool openStep |
( |
const QString & |
filePath, |
|
|
bool |
minify, |
|
|
bool |
tesselate, |
|
|
const QString & |
saveTo |
|
) |
| const |
|
privatenoexcept |
◆ prepareRuleCheckMessages()
◆ prettyPath()
QString prettyPath |
( |
const FilePath & |
path, |
|
|
const QString & |
style |
|
) |
| |
|
staticprivatenoexcept |
◆ failIfFileFormatUnstable()
bool failIfFileFormatUnstable |
( |
| ) |
|
|
staticprivatenoexcept |
◆ print()
void print |
( |
const QString & |
str | ) |
|
|
staticprivatenoexcept |
◆ printErr()
void printErr |
( |
const QString & |
str | ) |
|
|
staticprivatenoexcept |
The documentation for this class was generated from the following files: