20#ifndef LIBREPCB_CORE_COMPONENTPINSIGNALMAP_H
21#define LIBREPCB_CORE_COMPONENTPINSIGNALMAP_H
26#include "../../serialization/serializableobjectlist.h"
27#include "../../types/uuid.h"
99 return !(*
this == rhs);
131 const QSet<Uuid> pins,
135 foreach (
const Uuid& pin, pins) {
136 map.
append(std::make_shared<ComponentPinSignalMapItem>(pin, tl::nullopt,
The CmpSigPinDisplayType clas.
Definition: cmpsigpindisplaytype.h:40
static const CmpSigPinDisplayType & componentSignal() noexcept
display the name of the component signal
Definition: cmpsigpindisplaytype.h:106
Definition: componentpinsignalmap.h:126
ComponentPinSignalMapHelpers()=delete
static ComponentPinSignalMap create(const QSet< Uuid > pins, const CmpSigPinDisplayType &display=CmpSigPinDisplayType::componentSignal()) noexcept
Definition: componentpinsignalmap.h:130
The ComponentPinSignalMapItem class maps a symbol pin to a component signal.
Definition: componentpinsignalmap.h:50
~ComponentPinSignalMapItem() noexcept
Definition: componentpinsignalmap.cpp:61
CmpSigPinDisplayType mDisplayType
Definition: componentpinsignalmap.h:107
Event
Definition: componentpinsignalmap.h:55
bool operator!=(const ComponentPinSignalMapItem &rhs) const noexcept
Definition: componentpinsignalmap.h:98
Uuid mPinUuid
must be valid
Definition: componentpinsignalmap.h:105
ComponentPinSignalMapItem & operator=(const ComponentPinSignalMapItem &rhs) noexcept
Definition: componentpinsignalmap.cpp:111
const Uuid & getPinUuid() const noexcept
Definition: componentpinsignalmap.h:75
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: componentpinsignalmap.cpp:93
const Uuid & getUuid() const noexcept
Definition: componentpinsignalmap.h:72
const tl::optional< Uuid > & getSignalUuid() const noexcept
Definition: componentpinsignalmap.h:76
Signal< ComponentPinSignalMapItem, Event > onEdited
Definition: componentpinsignalmap.h:60
Slot< ComponentPinSignalMapItem, Event > OnEditedSlot
Definition: componentpinsignalmap.h:61
bool setSignalUuid(const tl::optional< Uuid > &uuid) noexcept
Definition: componentpinsignalmap.cpp:68
bool operator==(const ComponentPinSignalMapItem &rhs) const noexcept
Definition: componentpinsignalmap.cpp:103
const CmpSigPinDisplayType & getDisplayType() const noexcept
Definition: componentpinsignalmap.h:79
bool setDisplayType(const CmpSigPinDisplayType &type) noexcept
Definition: componentpinsignalmap.cpp:78
ComponentPinSignalMapItem()=delete
tl::optional< Uuid > mSignalUuid
tl::nullopt if not connected to a signal
Definition: componentpinsignalmap.h:106
The SExpression class.
Definition: sexpression.h:69
int append(const std::shared_ptr< T > &obj) noexcept
Definition: serializableobjectlist.h:342
The Signal class is used to emit signals on non-QObject derived classes.
Definition: signalslot.h:65
The Slot class is used to receive signals from non-QObject derived classes.
Definition: signalslot.h:170
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
Definition: occmodel.cpp:77
Definition: componentpinsignalmap.h:114
static constexpr const char * tagname
Definition: componentpinsignalmap.h:115