LibrePCB Developers Documentation
|
#include <attribute.h>
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. More... | |
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 |
Attribute | ( | const AttributeKey & | key, |
const AttributeType & | type, | ||
const QString & | value, | ||
const AttributeUnit * | unit | ||
) |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
bool setTypeValueUnit | ( | const AttributeType & | type, |
const QString & | value, | ||
const AttributeUnit * | unit | ||
) |
void serialize | ( | SExpression & | root | ) | const |
Serialize into librepcb::SExpression node.
root | Root node to serialize into. |
|
noexcept |
|
inlinenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |