24#ifndef KICAD_DIFF_JOB_OUTPUT_H
25#define KICAD_DIFF_JOB_OUTPUT_H
74 const wxString& aLabelB );
95 int aDiffExitCode,
REPORTER& aReporter );
Shared base for the document/library diff jobs (PCB, schematic, symbol and footprint library).
A color representation with 4 components: red, green, blue, alpha.
A pure virtual class used to derive REPORTER objects from.
DIFF_EMIT_OPTIONS MakeEmitOptions(const JOB_DIFF_BASE &aJob, const wxString &aLabelA, const wxString &aLabelB)
Build a DIFF_EMIT_OPTIONS pre-filled from the job's format, resolved output path and the supplied per...
DOC_KIND
Document type a diff/merge entry point should route to, derived from a file path's extension.
int EmitDiffResult(const DOCUMENT_DIFF &aResult, const DIFF_EMIT_OPTIONS &aOptions, int aDiffExitCode, REPORTER &aReporter)
Emit a computed DOCUMENT_DIFF in the requested format.
int DiffExitCode(const DOCUMENT_DIFF &aResult)
Map a computed diff onto its CLI exit code – SUCCESS when empty, otherwise ERR_RC_VIOLATIONS.
Describes how a computed DOCUMENT_DIFF should be emitted by a diff job.
std::function< DOCUMENT_GEOMETRY(const KIGFX::COLOR4D &)> comparisonGeometry
JOB_DIFF_BASE::OUTPUT_FORMAT format
DOC_KIND docKind
Source document type, propagated onto the scene so the PNG/SVG renderer sizes its viewport with the m...
std::function< DOCUMENT_GEOMETRY(const KIGFX::COLOR4D &)> referenceGeometry
wxString outputPath
empty -> stdout (JSON/text only)
The full set of changes between two parsed documents of one type.
Aggregate of background geometry extracted from one source document.