Horizon
src
rules
rule_match_keepout.hpp
1
#pragma once
2
#include "nlohmann/json_fwd.hpp"
3
#include "util/uuid.hpp"
4
5
namespace
horizon {
6
using
json
=
nlohmann::json
;
7
8
class
RuleMatchKeepout {
9
public
:
10
RuleMatchKeepout();
11
RuleMatchKeepout(
const
json
&j);
12
json
serialize()
const
;
13
std::string get_brief(
const
class
Block *block =
nullptr
)
const
;
14
void
cleanup(
const
class
Block *block);
15
bool
match(
const
class
KeepoutContour *contour)
const
;
16
17
enum class
Mode { ALL, KEEPOUT_CLASS, COMPONENT };
18
Mode mode = Mode::ALL;
19
20
std::string keepout_class;
21
UUID component;
22
};
23
}
// namespace horizon
nlohmann::basic_json
a class to store JSON values
Definition:
json.hpp:166
nlohmann::json
basic_json<> json
default JSON class
Definition:
json_fwd.hpp:61
Generated by
1.8.20