TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
drc.hpp File Reference

Design-rule checker equivalent to KiCad's for routing-relevant rules (design doc 03 §6). More...

#include <map>
#include <string>
#include <vector>
#include "model/board.hpp"
#include "model/rules.hpp"

Go to the source code of this file.

Classes

struct  tmk::drc::ViolationItem
struct  tmk::drc::Violation
struct  tmk::drc::DrcOptions
struct  tmk::drc::DrcReport

Namespaces

namespace  tmk
namespace  tmk::drc

Functions

DrcReport tmk::drc::run_drc (const model::Board &b, const model::DesignRules &r, const DrcOptions &opt={})
void tmk::drc::write_drc_json (const DrcReport &rep, const std::string &path)
 Writes the report in kicad-cli's JSON layout (violations, unconnected_items; positions in mm).

Detailed Description

Design-rule checker equivalent to KiCad's for routing-relevant rules (design doc 03 §6).

Violation type names are KiCad's, so reports compare 1:1 with kicad-cli pcb drc --format json.

Definition in file drc.hpp.