Horizon
Loading...
Searching...
No Matches
rule_thermals.hpp
1#pragma once
2#include "common/common.hpp"
3#include "rules/rule.hpp"
4#include "rules/rule_match.hpp"
5#include "rules/rule_match_component.hpp"
6#include "board/plane.hpp"
7#include <set>
8
9namespace horizon {
10class RuleThermals : public Rule {
11public:
12 static const auto id = RuleID::THERMALS;
13 RuleID get_id() const override
14 {
15 return id;
16 }
17
18 RuleThermals(const UUID &uu);
19 RuleThermals(const UUID &uu, const json &j);
20 json serialize() const override;
21
22 std::string get_brief(const class Block *block = nullptr, class IPool *pool = nullptr) const override;
23 bool can_export() const override;
24
25 bool matches(const class BoardPackage &pkg, const class Pad &pad, int layer) const;
26
27 RuleMatch match;
28 RuleMatchComponent match_component;
29 int layer = 10000;
30
31 enum class PadMode { ALL, PADS };
32 PadMode pad_mode = PadMode::ALL;
33 std::set<UUID> pads;
34
35 ThermalSettings thermal_settings;
36};
37} // namespace horizon
A block is one level of hierarchy in the netlist.
Definition block.hpp:29
Definition board_package.hpp:13
Definition ipool.hpp:15
Definition pad.hpp:12
Definition rule_match_component.hpp:9
Definition rule_match.hpp:9
Definition rule_thermals.hpp:10
Definition rule.hpp:58
Definition plane.hpp:9
This class encapsulates a UUID and allows it to be uses as a value type.
Definition uuid.hpp:16
a class to store JSON values
Definition json.hpp:177