![]() |
LibrePCB Developers Documentation
|
#include <netsignal.h>
Signals | |
void | nameChanged (const CircuitIdentifier &newName) |
void | highlightedChanged (bool isHighlighted) |
Public Member Functions | |
NetSignal ()=delete | |
NetSignal (const NetSignal &other)=delete | |
NetSignal (Circuit &circuit, const SExpression &node, const Version &fileFormat) | |
NetSignal (Circuit &circuit, NetClass &netclass, const CircuitIdentifier &name, bool autoName) | |
~NetSignal () noexcept | |
const Uuid & | getUuid () const noexcept |
const CircuitIdentifier & | getName () const noexcept |
bool | hasAutoName () const noexcept |
NetClass & | getNetClass () const noexcept |
bool | isHighlighted () const noexcept |
Circuit & | getCircuit () const noexcept |
const QList< ComponentSignalInstance * > & | getComponentSignals () const noexcept |
const QList< SI_NetSegment * > & | getSchematicNetSegments () const noexcept |
const QList< BI_NetSegment * > & | getBoardNetSegments () const noexcept |
const QList< BI_Plane * > & | getBoardPlanes () const noexcept |
int | getRegisteredElementsCount () const noexcept |
bool | isUsed () const noexcept |
bool | isNameForced () const noexcept |
bool | isAddedToCircuit () const noexcept |
void | setName (const CircuitIdentifier &name, bool isAutoName) noexcept |
void | setHighlighted (bool hl) noexcept |
void | addToCircuit () |
void | removeFromCircuit () |
void | registerComponentSignal (ComponentSignalInstance &signal) |
void | unregisterComponentSignal (ComponentSignalInstance &signal) |
void | registerSchematicNetSegment (SI_NetSegment &netsegment) |
void | unregisterSchematicNetSegment (SI_NetSegment &netsegment) |
void | registerBoardNetSegment (BI_NetSegment &netsegment) |
void | unregisterBoardNetSegment (BI_NetSegment &netsegment) |
void | registerBoardPlane (BI_Plane &plane) |
void | unregisterBoardPlane (BI_Plane &plane) |
void | serialize (SExpression &root) const override |
Serialize the object into an existing S-Expression node. More... | |
NetSignal & | operator= (const NetSignal &rhs)=delete |
bool | operator== (const NetSignal &rhs) noexcept |
bool | operator!= (const NetSignal &rhs) noexcept |
![]() | |
IF_ErcMsgProvider () | |
virtual | ~IF_ErcMsgProvider () |
virtual const char * | getErcMsgOwnerClassName () const noexcept=0 |
![]() | |
SerializableObject () noexcept | |
virtual | ~SerializableObject () noexcept |
SExpression | serializeToDomElement (const QString &name) const |
Serialize the object to a new S-Expression node. More... | |
Private Member Functions | |
bool | checkAttributesValidity () const noexcept |
void | updateErcMessages () noexcept |
Private Attributes | |
Circuit & | mCircuit |
bool | mIsAddedToCircuit |
bool | mIsHighlighted |
Uuid | mUuid |
CircuitIdentifier | mName |
bool | mHasAutoName |
NetClass * | mNetClass |
QList< ComponentSignalInstance * > | mRegisteredComponentSignals |
QList< SI_NetSegment * > | mRegisteredSchematicNetSegments |
QList< BI_NetSegment * > | mRegisteredBoardNetSegments |
QList< BI_Plane * > | mRegisteredBoardPlanes |
QScopedPointer< ErcMsg > | mErcMsgUnusedNetSignal |
the ERC message for unused netsignals More... | |
QScopedPointer< ErcMsg > | mErcMsgConnectedToLessThanTwoPins |
the ERC messages for netsignals with less than two component signals More... | |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static void | serializeObjectContainer (SExpression &root, const T &container, const QString &itemName) |
template<typename T > | |
static void | serializePointerContainer (SExpression &root, const T &container, const QString &itemName) |
template<typename T > | |
static void | serializePointerContainerUuidSorted (SExpression &root, const T &container, const QString &itemName) |
The NetSignal class.
|
delete |
NetSignal | ( | Circuit & | circuit, |
const SExpression & | node, | ||
const Version & | fileFormat | ||
) |
|
explicit |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
void addToCircuit | ( | ) |
void removeFromCircuit | ( | ) |
void registerComponentSignal | ( | ComponentSignalInstance & | signal | ) |
void unregisterComponentSignal | ( | ComponentSignalInstance & | signal | ) |
void registerSchematicNetSegment | ( | SI_NetSegment & | netsegment | ) |
void unregisterSchematicNetSegment | ( | SI_NetSegment & | netsegment | ) |
void registerBoardNetSegment | ( | BI_NetSegment & | netsegment | ) |
void unregisterBoardNetSegment | ( | BI_NetSegment & | netsegment | ) |
void registerBoardPlane | ( | BI_Plane & | plane | ) |
void unregisterBoardPlane | ( | BI_Plane & | plane | ) |
|
overridevirtual |
Serialize the object into an existing S-Expression node.
This method inserts/appends all attributes and childs of the object to an existing S-Expression node. The content which already exists in the given S-Expression node will not be removed.
root | The target DOM root node |
Exception | This method throws an exception if an error occurs. |
Implements SerializableObject.
|
inlinenoexcept |
|
inlinenoexcept |
|
signal |
|
signal |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
the ERC message for unused netsignals
|
private |
the ERC messages for netsignals with less than two component signals