Horizon
power_symbol.hpp
1#pragma once
2#include "util/uuid.hpp"
3#include "nlohmann/json_fwd.hpp"
4#include "common/common.hpp"
5#include "util/uuid_ptr.hpp"
6
7namespace horizon {
8using json = nlohmann::json;
9
10
17public:
18 PowerSymbol(const UUID &uu, const json &j, class Sheet *sheet = nullptr, class Block *block = nullptr);
19 PowerSymbol(const UUID &uu);
20
21 UUID uuid;
24 bool mirror = false;
25 Orientation orientation = Orientation::DOWN;
26 void mirrorx();
27
28 UUID get_uuid() const;
29 void update_refs(Sheet &sheet, Block &block);
30
31 json serialize() const;
32};
33} // namespace horizon
A block is one level of hierarchy in the netlist.
Definition: block.hpp:29
GND symbols and the like.
Definition: power_symbol.hpp:16
Definition: sheet.hpp:42
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Definition: uuid_ptr.hpp:8
a class to store JSON values
Definition: json.hpp:177
basic_json<> json
default JSON class
Definition: json_fwd.hpp:62