1 #include "rule_clearance_silk_exp_copper.hpp"
2 #include "util/util.hpp"
3 #include <sstream>
4 #include "nlohmann/json.hpp"
5 
6 namespace horizon {
RuleClearanceSilkscreenExposedCopper()7 RuleClearanceSilkscreenExposedCopper::RuleClearanceSilkscreenExposedCopper() : Rule()
8 {
9     id = RuleID::CLEARANCE_SILKSCREEN_EXPOSED_COPPER;
10 }
11 
RuleClearanceSilkscreenExposedCopper(const json & j,const RuleImportMap & import_map)12 RuleClearanceSilkscreenExposedCopper::RuleClearanceSilkscreenExposedCopper(const json &j,
13                                                                            const RuleImportMap &import_map)
14     : Rule(j, import_map)
15 {
16     id = RuleID::CLEARANCE_SILKSCREEN_EXPOSED_COPPER;
17     clearance_top = j.at("clearance_top");
18     clearance_bottom = j.at("clearance_bottom");
19 }
20 
serialize() const21 json RuleClearanceSilkscreenExposedCopper::serialize() const
22 {
23     json j = Rule::serialize();
24     j["clearance_top"] = clearance_top;
25     j["clearance_bottom"] = clearance_bottom;
26     return j;
27 }
28 
get_brief(const class Block * block) const29 std::string RuleClearanceSilkscreenExposedCopper::get_brief(const class Block *block) const
30 {
31     return "";
32 }
33 } // namespace horizon
34