2 #include "util/uuid.hpp" 3 #include "nlohmann/json_fwd.hpp" 4 #include "rules/rules.hpp" 5 #include "rule_single_pin_net.hpp" 14 void load_from_json(
const json &j);
16 void apply(RuleID
id,
class Schematic *sch);
17 json serialize()
const;
18 std::set<RuleID> get_rule_ids()
const;
19 Rule *get_rule(RuleID
id);
20 Rule *get_rule(RuleID
id,
const UUID &uu);
21 std::map<UUID, Rule *> get_rules(RuleID
id);
22 void remove_rule(RuleID
id,
const UUID &uu);
23 Rule *add_rule(RuleID
id);
Definition: rule_single_pin_net.hpp:5
A Schematic is the visual representation of a Block.
Definition: schematic.hpp:27
a class to store JSON values
Definition: json.hpp:161
Definition: schematic_rules.hpp:10
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61