![]() |
LibrePCB Developers Documentation
|
The AttributeType class. More...
#include <attributetype.h>
Inheritance diagram for AttributeType:
Collaboration diagram for AttributeType:Public Types | |
| enum class | Type_t |
| Available Attribute Types. More... | |
Public Member Functions | |
| AttributeType ()=delete | |
| AttributeType (const AttributeType &other)=delete | |
| AttributeType (Type_t type, const QString &typeName, const QString &typeNameTr) noexcept | |
| virtual | ~AttributeType () noexcept |
| Type_t | getType () const noexcept |
| const QString & | getName () const noexcept |
| const QString & | getNameTr () const noexcept |
| const QList< const AttributeUnit * > & | getAvailableUnits () const noexcept |
| const AttributeUnit * | getUnitFromString (const QString &unit) const |
| const AttributeUnit * | getDefaultUnit () const noexcept |
| bool | isUnitAvailable (const AttributeUnit *unit) const noexcept |
| const AttributeUnit * | tryExtractUnitFromValue (QString &value) const noexcept |
| virtual bool | isValueValid (const QString &value) const noexcept=0 |
| virtual QString | valueFromTr (const QString &value) const noexcept=0 |
| virtual QString | printableValueTr (const QString &value, const AttributeUnit *unit=nullptr) const noexcept=0 |
| AttributeType & | operator= (const AttributeType &rhs)=delete |
Static Public Member Functions | |
| static QList< const AttributeType * > | getAllTypes () noexcept |
| static const AttributeType & | fromString (const QString &type) |
Protected Attributes | |
| Type_t | mType |
| QString | mTypeName |
| QString | mTypeNameTr |
| QList< const AttributeUnit * > | mAvailableUnits |
| const AttributeUnit * | mDefaultUnit |
The AttributeType class.
|
strong |
Available Attribute Types.
| Enumerator | |
|---|---|
| String |
|
| Resistance |
|
| Capacitance |
|
| Inductance |
|
| Voltage |
|
| Current |
|
| Power |
|
| Frequency |
|
| _COUNT | |
|
delete |
|
delete |
|
noexcept |
|
virtualnoexcept |
|
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:
|
inlinenoexcept |
Here is the caller graph for this function:| const AttributeUnit * getUnitFromString | ( | const QString & | unit | ) | const |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtualnoexcept |
Implemented in AttrTypeCapacitance, AttrTypeCurrent, AttrTypeFrequency, AttrTypeInductance, AttrTypePower, AttrTypeResistance, AttrTypeString, and AttrTypeVoltage.
Here is the caller graph for this function:
|
pure virtualnoexcept |
Implemented in AttrTypeCapacitance, AttrTypeCurrent, AttrTypeFrequency, AttrTypeInductance, AttrTypePower, AttrTypeResistance, AttrTypeString, and AttrTypeVoltage.
|
pure virtualnoexcept |
Implemented in AttrTypeCapacitance, AttrTypeCurrent, AttrTypeFrequency, AttrTypeInductance, AttrTypePower, AttrTypeResistance, AttrTypeString, and AttrTypeVoltage.
|
staticnoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
delete |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |