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

Deterministic defect injection for DRC parity on broken boards (design doc 03 §6, roadmap M2): takes a routed board and adds one kind of defect a given number of times (shorts between nets, dangling tracks and vias, cut connections), so TraceMaker's classification of each defect can be compared with kicad-cli's. More...

#include <cstdint>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  tmk
namespace  tmk::app

Functions

const std::vector< std::string > & tmk::app::defect_kinds ()
 Defect kinds in a fixed order.
int tmk::app::inject_defects (const std::string &in, const std::string &out, const std::string &manifest, const std::string &kind, std::uint64_t seed, int count)
 Writes out (and a JSON manifest of the injected defects to manifest, if not empty).

Detailed Description

Deterministic defect injection for DRC parity on broken boards (design doc 03 §6, roadmap M2): takes a routed board and adds one kind of defect a given number of times (shorts between nets, dangling tracks and vias, cut connections), so TraceMaker's classification of each defect can be compared with kicad-cli's.

Definition in file defects.hpp.