LibrePCB Developers Documentation
OutputJobRunner Class Referencefinal

The OutputJobRunner class. More...

#include <outputjobrunner.h>

Inherits QObject.

+ Collaboration diagram for OutputJobRunner:

Signals

void jobStarted (std::shared_ptr< const OutputJob > job)
 
void aboutToWriteFile (const FilePath &fp)
 
void aboutToRemoveFile (const FilePath &fp)
 
void warning (const QString &msg)
 
void previewReady (int index, const QSize &pageSize, const QRectF margins, std::shared_ptr< QPicture > picture)
 

Public Member Functions

 OutputJobRunner ()=delete
 
 OutputJobRunner (const OutputJobRunner &other)=delete
 
 OutputJobRunner (Project &project) noexcept
 
 ~OutputJobRunner () noexcept
 
const FilePathgetOutputDirectory () const noexcept
 
const QMultiHash< Uuid, FilePath > & getWrittenFiles () const noexcept
 
void setOutputDirectory (const FilePath &fp) noexcept
 
void run (const QVector< std::shared_ptr< OutputJob > > &jobs)
 
QList< FilePathfindUnknownFiles (const QSet< Uuid > &knownJobs) const
 
void removeUnknownFiles (const QList< FilePath > &files)
 
GraphicsExport::Pages buildPages (const GraphicsOutputJob &job)
 
OutputJobRunneroperator= (const OutputJobRunner &rhs)=delete
 

Private Member Functions

void run (const OutputJob &job)
 
void runImpl (const GraphicsOutputJob &job)
 
void runImpl (const GerberExcellonOutputJob &job)
 
void runImpl (const PickPlaceOutputJob &job)
 
void runImpl (const GerberX3OutputJob &job)
 
void runImpl (const NetlistOutputJob &job)
 
void runImpl (const BomOutputJob &job)
 
void runImpl (const Board3DOutputJob &job)
 
void runImpl (const ProjectJsonOutputJob &job)
 
void runImpl (const LppzOutputJob &job)
 
void runImpl (const CopyOutputJob &job)
 
void runImpl (const ArchiveOutputJob &job)
 
QList< Board * > getBoards (const OutputJob::ObjectSet< tl::optional< Uuid > > &set, bool includeNullInAll) const
 
QList< Board * > getBoards (const OutputJob::ObjectSet< Uuid > &set) const
 
QVector< std::shared_ptr< AssemblyVariant > > getAssemblyVariants (const OutputJob::ObjectSet< tl::optional< Uuid > > &set, bool includeNullInAll) const
 
QVector< std::shared_ptr< AssemblyVariant > > getAssemblyVariants (const OutputJob::ObjectSet< Uuid > &set) const
 

Private Attributes

ProjectmProject
 
QScopedPointer< OutputDirectoryWritermWriter
 

Detailed Description

The OutputJobRunner class.

Constructor & Destructor Documentation

◆ OutputJobRunner() [1/3]

OutputJobRunner ( )
delete

◆ OutputJobRunner() [2/3]

OutputJobRunner ( const OutputJobRunner other)
delete

◆ OutputJobRunner() [3/3]

OutputJobRunner ( Project project)
explicitnoexcept

◆ ~OutputJobRunner()

~OutputJobRunner ( )
noexcept

Member Function Documentation

◆ getOutputDirectory()

const FilePath & getOutputDirectory ( ) const
noexcept
+ Here is the caller graph for this function:

◆ getWrittenFiles()

const QMultiHash< Uuid, FilePath > & getWrittenFiles ( ) const
noexcept
+ Here is the caller graph for this function:

◆ setOutputDirectory()

void setOutputDirectory ( const FilePath fp)
noexcept
+ Here is the caller graph for this function:

◆ run() [1/2]

void run ( const QVector< std::shared_ptr< OutputJob > > &  jobs)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findUnknownFiles()

QList< FilePath > findUnknownFiles ( const QSet< Uuid > &  knownJobs) const
+ Here is the caller graph for this function:

◆ removeUnknownFiles()

void removeUnknownFiles ( const QList< FilePath > &  files)

◆ buildPages()

GraphicsExport::Pages buildPages ( const GraphicsOutputJob job)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

OutputJobRunner & operator= ( const OutputJobRunner rhs)
delete

◆ jobStarted

void jobStarted ( std::shared_ptr< const OutputJob job)
signal
+ Here is the caller graph for this function:

◆ aboutToWriteFile

void aboutToWriteFile ( const FilePath fp)
signal
+ Here is the caller graph for this function:

◆ aboutToRemoveFile

void aboutToRemoveFile ( const FilePath fp)
signal
+ Here is the caller graph for this function:

◆ warning

void warning ( const QString &  msg)
signal
+ Here is the caller graph for this function:

◆ previewReady

void previewReady ( int  index,
const QSize &  pageSize,
const QRectF  margins,
std::shared_ptr< QPicture >  picture 
)
signal

◆ run() [2/2]

void run ( const OutputJob job)
private
+ Here is the call graph for this function:

◆ runImpl() [1/11]

void runImpl ( const GraphicsOutputJob job)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ runImpl() [2/11]

void runImpl ( const GerberExcellonOutputJob job)
private
+ Here is the call graph for this function:

◆ runImpl() [3/11]

void runImpl ( const PickPlaceOutputJob job)
private
+ Here is the call graph for this function:

◆ runImpl() [4/11]

void runImpl ( const GerberX3OutputJob job)
private
+ Here is the call graph for this function:

◆ runImpl() [5/11]

void runImpl ( const NetlistOutputJob job)
private
+ Here is the call graph for this function:

◆ runImpl() [6/11]

void runImpl ( const BomOutputJob job)
private
+ Here is the call graph for this function:

◆ runImpl() [7/11]

void runImpl ( const Board3DOutputJob job)
private
+ Here is the call graph for this function:

◆ runImpl() [8/11]

void runImpl ( const ProjectJsonOutputJob job)
private
+ Here is the call graph for this function:

◆ runImpl() [9/11]

void runImpl ( const LppzOutputJob job)
private
+ Here is the call graph for this function:

◆ runImpl() [10/11]

void runImpl ( const CopyOutputJob job)
private
+ Here is the call graph for this function:

◆ runImpl() [11/11]

void runImpl ( const ArchiveOutputJob job)
private
+ Here is the call graph for this function:

◆ getBoards() [1/2]

QList< Board * > getBoards ( const OutputJob::ObjectSet< tl::optional< Uuid > > &  set,
bool  includeNullInAll 
) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBoards() [2/2]

QList< Board * > getBoards ( const OutputJob::ObjectSet< Uuid > &  set) const
private
+ Here is the call graph for this function:

◆ getAssemblyVariants() [1/2]

QVector< std::shared_ptr< AssemblyVariant > > getAssemblyVariants ( const OutputJob::ObjectSet< tl::optional< Uuid > > &  set,
bool  includeNullInAll 
) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAssemblyVariants() [2/2]

QVector< std::shared_ptr< AssemblyVariant > > getAssemblyVariants ( const OutputJob::ObjectSet< Uuid > &  set) const
private
+ Here is the call graph for this function:

Member Data Documentation

◆ mProject

Project& mProject
private

◆ mWriter

QScopedPointer<OutputDirectoryWriter> mWriter
private

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