20#ifndef LIBREPCB_CORE_NETCLASS_H
21#define LIBREPCB_CORE_NETCLASS_H
26#include "../../types/elementname.h"
27#include "../../types/uuid.h"
The Circuit class represents all electrical connections in a project (drawn in the schematics)
Definition: circuit.h:70
The NetClass class.
Definition: netclass.h:46
int getNetSignalCount() const noexcept
Definition: netclass.h:61
void setName(const ElementName &name) noexcept
Definition: netclass.cpp:57
Circuit & mCircuit
Definition: netclass.h:87
const ElementName & getName() const noexcept
Definition: netclass.h:60
Uuid mUuid
Definition: netclass.h:91
bool isUsed() const noexcept
Definition: netclass.h:64
ElementName mName
Definition: netclass.h:92
void unregisterNetSignal(NetSignal &signal)
Definition: netclass.cpp:97
void registerNetSignal(NetSignal &signal)
Definition: netclass.cpp:88
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: netclass.cpp:105
NetClass & operator=(const NetClass &rhs)=delete
const Uuid & getUuid() const noexcept
Definition: netclass.h:59
void removeFromCircuit()
Definition: netclass.cpp:75
Circuit & getCircuit() const noexcept
Definition: netclass.h:58
QHash< Uuid, NetSignal * > mRegisteredNetSignals
all registered netsignals
Definition: netclass.h:96
NetClass(const NetClass &other)=delete
bool mIsAddedToCircuit
Definition: netclass.h:88
void addToCircuit()
Definition: netclass.cpp:68
~NetClass() noexcept
Definition: netclass.cpp:48
The NetSignal class.
Definition: netsignal.h:50
The SExpression class.
Definition: sexpression.h:69
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, ElementNameConstraint, ElementNameVerifier > ElementName
Definition: elementname.h:84