![]() |
LibrePCB Developers Documentation
|
#include <attribute.h>
Collaboration diagram for Attribute:Public Types | |
| enum class | Event |
| typedef Slot< Attribute, Event > | OnEditedSlot |
Public Member Functions | |
| Attribute ()=delete | |
| Attribute (const Attribute &other) noexcept | |
| Attribute (const SExpression &node) | |
| Attribute (const AttributeKey &key, const AttributeType &type, const QString &value, const AttributeUnit *unit) | |
| ~Attribute () noexcept | |
| const AttributeKey & | getKey () const noexcept |
| const QString & | getName () const noexcept |
| const AttributeType & | getType () const noexcept |
| const AttributeUnit * | getUnit () const noexcept |
| const QString & | getValue () const noexcept |
| QString | getValueTr (bool showUnit) const noexcept |
| bool | setKey (const AttributeKey &key) noexcept |
| bool | setTypeValueUnit (const AttributeType &type, const QString &value, const AttributeUnit *unit) |
| void | serialize (SExpression &root) const |
| Serialize into librepcb::SExpression node. | |
| bool | operator== (const Attribute &rhs) const noexcept |
| bool | operator!= (const Attribute &rhs) const noexcept |
| Attribute & | operator= (const Attribute &rhs) noexcept |
Public Attributes | |
| Signal< Attribute, Event > | onEdited |
Private Member Functions | |
| bool | checkAttributesValidity () const noexcept |
Private Attributes | |
| AttributeKey | mKey |
| const AttributeType * | mType |
| QString | mValue |
| const AttributeUnit * | mUnit |
The Attribute class.
| typedef Slot<Attribute, Event> OnEditedSlot |
|
strong |
|
delete |
|
explicit |
Here is the call graph for this function:| Attribute | ( | const AttributeKey & | key, |
| const AttributeType & | type, | ||
| const QString & | value, | ||
| const AttributeUnit * | unit | ||
| ) |
Here is the call graph for this function:
|
noexcept |
|
inlinenoexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
|
inlinenoexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
noexcept |
|
noexcept |
Here is the caller graph for this function:| bool setTypeValueUnit | ( | const AttributeType & | type, |
| const QString & | value, | ||
| const AttributeUnit * | unit | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:| void serialize | ( | SExpression & | root | ) | const |
Serialize into librepcb::SExpression node.
| root | Root node to serialize into. |
Here is the call graph for this function:
|
noexcept |
|
inlinenoexcept |
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |