2022-03-31 21:20:41 +00:00
|
|
|
#include "pin.h"
|
|
|
|
|
|
|
|
namespace domain {
|
|
|
|
|
2022-06-12 22:48:12 +00:00
|
|
|
Pin::Pin(std::string name, PinType type, std::string tooltip, std::optional<std::string> connection, domain::ui::Pin pin,
|
2022-05-27 06:18:17 +00:00
|
|
|
std::optional<std::vector<Value>> wires)
|
|
|
|
: name(name), type(type), tooltip(tooltip), connection(connection), displayPin(pin), wires(wires) {}
|
|
|
|
|
|
|
|
std::string &Pin::getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
Pin::PinType Pin::getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string Pin::getTooltip() {
|
|
|
|
return tooltip;
|
|
|
|
}
|
|
|
|
|
|
|
|
ui::Pin &Pin::getDisplayPin() {
|
|
|
|
return displayPin;
|
|
|
|
}
|
|
|
|
|
2022-06-12 22:48:12 +00:00
|
|
|
std::optional<std::string> Pin::getConnection() {
|
2022-05-27 06:18:17 +00:00
|
|
|
return connection;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::optional<std::vector<Value>> &Pin::getWires() {
|
|
|
|
return wires;
|
|
|
|
}
|
2022-03-31 21:20:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
} // namespace domain
|