20#ifndef LIBREPCB_CLI_COMMANDLINEINTERFACE_H
21#define LIBREPCB_CLI_COMMANDLINEINTERFACE_H
36class LibraryBaseElement;
38class TransactionalFileSystem;
58 int execute(const QStringList& args) noexcept;
62 const QString& projectFile,
bool runErc,
bool runDrc,
63 const QString& drcSettingsPath, const QStringList& runJobs,
64 bool runAllJobs, const QString& customJobsPath,
65 const QString& customOutDir, const QStringList& exportSchematicsFiles,
66 const QStringList& exportBomFiles, const QStringList& exportBoardBomFiles,
67 const QString& bomAttributes,
bool exportPcbFabricationData,
68 const QString& pcbFabricationSettingsPath,
69 const QStringList& exportPnpTopFiles,
70 const QStringList& exportPnpBottomFiles,
71 const QStringList& exportNetlistFiles, const QStringList& boardNames,
72 const QStringList& boardIndices,
bool removeOtherBoards,
73 const QStringList& avNames, const QStringList& avIndices,
74 const QString& setDefaultAv,
bool save,
bool strict) const noexcept;
75 bool openLibrary(const QString& libDir,
bool all,
bool runCheck,
76 bool minifyStepFiles,
bool save,
bool strict) const noexcept;
79 bool minifyStepFiles,
bool save,
bool strict,
81 bool openStep(const QString& filePath,
bool minify,
bool tesselate,
82 const QString& saveTo) const noexcept;
85 int& approvedMsgCount) noexcept;
87 const QString& style) noexcept;
89 static
void print(const QString& str) noexcept;
90 static
void printErr(const QString& str) noexcept;
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:129
The LibraryBaseElement class.
Definition: librarybaseelement.h:48
The SExpression class.
Definition: sexpression.h:69
Transactional librepcb::FileSystem implementation.
Definition: transactionalfilesystem.h:71
The CommandLineInterface class.
Definition: commandlineinterface.h:49
static QString prettyPath(const FilePath &path, const QString &style) noexcept
Definition: commandlineinterface.cpp:1402
static void print(const QString &str) noexcept
Definition: commandlineinterface.cpp:1432
bool openLibrary(const QString &libDir, bool all, bool runCheck, bool minifyStepFiles, bool save, bool strict) const noexcept
Definition: commandlineinterface.cpp:1055
CommandLineInterface() noexcept
Definition: commandlineinterface.cpp:75
void processLibraryElement(const QString &libDir, TransactionalFileSystem &fs, LibraryBaseElement &element, bool runCheck, bool minifyStepFiles, bool save, bool strict, bool &success) const
Definition: commandlineinterface.cpp:1195
static bool failIfFileFormatUnstable() noexcept
Definition: commandlineinterface.cpp:1416
static QStringList prepareRuleCheckMessages(RuleCheckMessageList messages, const QSet< SExpression > &approvals, int &approvedMsgCount) noexcept
Definition: commandlineinterface.cpp:1373
int execute(const QStringList &args) noexcept
Definition: commandlineinterface.cpp:82
static void printErr(const QString &str) noexcept
Definition: commandlineinterface.cpp:1437
bool openStep(const QString &filePath, bool minify, bool tesselate, const QString &saveTo) const noexcept
Definition: commandlineinterface.cpp:1297
~CommandLineInterface() noexcept=default
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
Definition: commandlineinterface.cpp:483
Definition: occmodel.cpp:77
QVector< std::shared_ptr< const RuleCheckMessage > > RuleCheckMessageList
Definition: rulecheckmessage.h:104