KiCad PCB EDA Suite
Loading...
Searching...
No Matches
kicad_diff_types.cpp File Reference
#include <diff_merge/kicad_diff_types.h>
#include <core/wx_stl_compat.h>
#include <eda_units.h>
#include <geometry/eda_angle.h>
#include <json_conversions.h>
#include <layer_ids.h>
#include <nlohmann/json.hpp>
#include <wx/string.h>
#include <wx/crt.h>
#include <wx/file.h>
#include <functional>
#include <cstdio>
#include <sstream>
#include <stdexcept>

Go to the source code of this file.

Namespaces

namespace  KICAD_DIFF
 

Functions

const char * KICAD_DIFF::ChangeKindToString (CHANGE_KIND aKind)
 
CHANGE_KIND KICAD_DIFF::ChangeKindFromString (const std::string &aKind)
 
std::string KICAD_DIFF::FormatDiffAsText (const DOCUMENT_DIFF &aDiff, const wxString &aLabelA, const wxString &aLabelB, EDA_UNITS aUnits, const EDA_IU_SCALE &aScale)
 Render a DOCUMENT_DIFF as the human-readable text report shared by the diff jobs and CLI: a diff <labelA> <labelB> header, the change count, then one indented line per change (recursing into footprint/sheet children) with property deltas printed as name: before -> after.
 
bool KICAD_DIFF::WriteDiffOutput (const std::string &aContent, const wxString &aOutputPath)
 Write diff/merge text output to aOutputPath, or to stdout when the path is empty.