20#ifndef LIBREPCB_CORE_COMPONENTSIGNAL_H
21#define LIBREPCB_CORE_COMPONENTSIGNAL_H
26#include "../../serialization/serializableobjectlist.h"
27#include "../../types/circuitidentifier.h"
28#include "../../types/signalrole.h"
29#include "../../types/uuid.h"
64 const SignalRole& role,
const QString& forcedNetName,
101 return !(*
this == rhs);
120 static constexpr const char*
tagname =
"signal";
The ComponentSignal class represents one signal of a component.
Definition: componentsignal.h:45
bool setIsNegated(bool negated) noexcept
Definition: componentsignal.cpp:120
bool setForcedNetName(const QString &name) noexcept
Definition: componentsignal.cpp:100
bool isNegated() const noexcept
Definition: componentsignal.h:75
ComponentSignal & operator=(const ComponentSignal &rhs) noexcept
Definition: componentsignal.cpp:171
bool setIsRequired(bool required) noexcept
Definition: componentsignal.cpp:110
bool setName(const CircuitIdentifier &name) noexcept
Definition: componentsignal.cpp:80
bool isClock() const noexcept
Definition: componentsignal.h:76
Signal< ComponentSignal, Event > onEdited
Definition: componentsignal.h:57
bool setIsClock(bool clock) noexcept
Definition: componentsignal.cpp:130
Uuid mUuid
Definition: componentsignal.h:106
Event
Definition: componentsignal.h:48
bool operator!=(const ComponentSignal &rhs) const noexcept
Definition: componentsignal.h:100
bool isNetSignalNameForced() const noexcept
Definition: componentsignal.h:77
const QString & getForcedNetName() const noexcept
Definition: componentsignal.h:73
bool mIsRequired
Definition: componentsignal.h:110
const SignalRole & getRole() const noexcept
Definition: componentsignal.h:72
const CircuitIdentifier & getName() const noexcept
Definition: componentsignal.h:71
bool isRequired() const noexcept
Definition: componentsignal.h:74
SignalRole mRole
Definition: componentsignal.h:108
bool operator==(const ComponentSignal &rhs) const noexcept
Definition: componentsignal.cpp:160
QString mForcedNetName
Definition: componentsignal.h:109
bool mIsNegated
Definition: componentsignal.h:111
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: componentsignal.cpp:144
const Uuid & getUuid() const noexcept
Definition: componentsignal.h:70
bool mIsClock
Definition: componentsignal.h:112
~ComponentSignal() noexcept
Definition: componentsignal.cpp:73
CircuitIdentifier mName
Definition: componentsignal.h:107
Slot< ComponentSignal, Event > OnEditedSlot
Definition: componentsignal.h:58
bool setRole(const SignalRole &role) noexcept
Definition: componentsignal.cpp:90
The SExpression class.
Definition: sexpression.h:69
The Signal class is used to emit signals on non-QObject derived classes.
Definition: signalslot.h:65
The SignalRole class provides all supported electrical signal roles.
Definition: signalrole.h:42
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
type_safe::constrained_type< QString, CircuitIdentifierConstraint, CircuitIdentifierVerifier > CircuitIdentifier
Definition: circuitidentifier.h:96
Definition: componentsignal.h:119
static constexpr const char * tagname
Definition: componentsignal.h:120