LibrePCB Developers Documentation
CommandLineInterface Class Referencefinal

The CommandLineInterface class. More...

#include <commandlineinterface.h>

+ Collaboration diagram for CommandLineInterface:

Public Member Functions

 CommandLineInterface ()=delete
 
 CommandLineInterface (const Application &app) noexcept
 
 ~CommandLineInterface () noexcept=default
 
int execute () noexcept
 

Private Member Functions

 Q_DECLARE_TR_FUNCTIONS (CommandLineInterface)
 
bool openProject (const QString &projectFile, bool runErc, const QStringList &exportSchematicsFiles, const QStringList &exportBomFiles, const QStringList &exportBoardBomFiles, const QString &bomAttributes, bool exportPcbFabricationData, const QString &pcbFabricationSettingsPath, const QStringList &boards, bool save, bool strict) const noexcept
 
bool openLibrary (const QString &libDir, bool all, bool save, bool strict) const noexcept
 
void processLibraryElement (const QString &libDir, TransactionalFileSystem &fs, library::LibraryBaseElement &element, bool save, bool strict, bool &success) const
 

Static Private Member Functions

static QString prettyPath (const FilePath &path, const QString &style) noexcept
 
static void print (const QString &str, int newlines=1) noexcept
 
static void printErr (const QString &str, int newlines=1) noexcept
 

Private Attributes

const ApplicationmApp
 

Detailed Description

Constructor & Destructor Documentation

◆ CommandLineInterface() [1/2]

◆ CommandLineInterface() [2/2]

CommandLineInterface ( const Application app)
explicitnoexcept

◆ ~CommandLineInterface()

~CommandLineInterface ( )
defaultnoexcept

Member Function Documentation

◆ Q_DECLARE_TR_FUNCTIONS()

Q_DECLARE_TR_FUNCTIONS ( CommandLineInterface  )
private

◆ execute()

int execute ( )
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,
const QStringList &  exportSchematicsFiles,
const QStringList &  exportBomFiles,
const QStringList &  exportBoardBomFiles,
const QString &  bomAttributes,
bool  exportPcbFabricationData,
const QString &  pcbFabricationSettingsPath,
const QStringList &  boards,
bool  save,
bool  strict 
) const
privatenoexcept
+ Here is the call graph for this function:

◆ openLibrary()

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

◆ processLibraryElement()

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

◆ prettyPath()

QString prettyPath ( const FilePath path,
const QString &  style 
)
staticprivatenoexcept

◆ print()

void print ( const QString &  str,
int  newlines = 1 
)
staticprivatenoexcept

◆ printErr()

void printErr ( const QString &  str,
int  newlines = 1 
)
staticprivatenoexcept

Member Data Documentation

◆ mApp

const Application& mApp
private

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