LibrePCB Developers Documentation
CommandLineInterface Class Referencefinal

The CommandLineInterface class. More...

#include <commandlineinterface.h>

+ Collaboration diagram for CommandLineInterface:

Public Member Functions

 CommandLineInterface () noexcept
 
 ~CommandLineInterface () noexcept=default
 
int execute (const QStringList &args) noexcept
 

Private Member Functions

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
 
void processLibraryElement (const QString &libDir, TransactionalFileSystem &fs, LibraryBaseElement &element, bool runCheck, bool minifyStepFiles, bool save, bool strict, bool &success) const
 
bool openStep (const QString &filePath, bool minify, bool tesselate, const QString &saveTo) const noexcept
 

Static Private Member Functions

static QStringList prepareRuleCheckMessages (RuleCheckMessageList messages, const QSet< SExpression > &approvals, int &approvedMsgCount) noexcept
 
static QString prettyPath (const FilePath &path, const QString &style) noexcept
 
static bool failIfFileFormatUnstable () noexcept
 
static void print (const QString &str) noexcept
 
static void printErr (const QString &str) noexcept
 

Detailed Description

Constructor & Destructor Documentation

◆ CommandLineInterface()

CommandLineInterface ( )
noexcept

◆ ~CommandLineInterface()

~CommandLineInterface ( )
defaultnoexcept

Member Function Documentation

◆ execute()

int execute ( const QStringList &  args)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ openLibrary()

bool openLibrary ( const QString &  libDir,
bool  all,
bool  runCheck,
bool  minifyStepFiles,
bool  save,
bool  strict 
) const
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processLibraryElement()

void processLibraryElement ( const QString &  libDir,
TransactionalFileSystem fs,
LibraryBaseElement element,
bool  runCheck,
bool  minifyStepFiles,
bool  save,
bool  strict,
bool &  success 
) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ openStep()

bool openStep ( const QString &  filePath,
bool  minify,
bool  tesselate,
const QString &  saveTo 
) const
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareRuleCheckMessages()

QStringList prepareRuleCheckMessages ( RuleCheckMessageList  messages,
const QSet< SExpression > &  approvals,
int &  approvedMsgCount 
)
staticprivatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prettyPath()

QString prettyPath ( const FilePath path,
const QString &  style 
)
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ failIfFileFormatUnstable()

bool failIfFileFormatUnstable ( )
staticprivatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print()

void print ( const QString &  str)
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ printErr()

void printErr ( const QString &  str)
staticprivatenoexcept
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: