LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AttrTypePower Class Referencefinal

The AttrTypePower class. More...

#include <attrtypepower.h>

+ Inheritance diagram for AttrTypePower:
+ Collaboration diagram for AttrTypePower:

Public Member Functions

bool isValueValid (const QString &value) const noexcept
 
QString valueFromTr (const QString &value) const noexcept
 
QString printableValueTr (const QString &value, const AttributeUnit *unit=nullptr) const noexcept
 
- Public Member Functions inherited from AttributeType
 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 AttributeUnitgetUnitFromString (const QString &unit) const
 
const AttributeUnitgetDefaultUnit () const noexcept
 
bool isUnitAvailable (const AttributeUnit *unit) const noexcept
 
void throwIfValueInvalid (const QString &value) const
 

Static Public Member Functions

static const AttrTypePowerinstance () noexcept
 
- Static Public Member Functions inherited from AttributeType
static QList< const
AttributeType * > 
getAllTypes () noexcept
 
static const AttributeTypefromString (const QString &type)
 

Private Member Functions

 AttrTypePower (const AttrTypePower &other)=delete
 
AttrTypePoweroperator= (const AttrTypePower &rhs)=delete
 
 AttrTypePower () noexcept
 
 ~AttrTypePower () noexcept
 

Additional Inherited Members

- Public Types inherited from AttributeType
enum  Type_t
 Available Attribute Types. More...
 
- Protected Member Functions inherited from AttributeType
 AttributeType ()=delete
 
 AttributeType (const AttributeType &other)=delete
 
AttributeTypeoperator= (const AttributeType &rhs)=delete
 
- Protected Attributes inherited from AttributeType
Type_t mType
 
QString mTypeName
 
QString mTypeNameTr
 
QList< const AttributeUnit * > mAvailableUnits
 
const AttributeUnitmDefaultUnit
 

Detailed Description

The AttrTypePower class.

Constructor & Destructor Documentation

AttrTypePower ( const AttrTypePower other)
privatedelete
AttrTypePower ( )
privatenoexcept
~AttrTypePower ( )
privatenoexcept

Member Function Documentation

bool isValueValid ( const QString &  value) const
virtualnoexcept

Implements AttributeType.

QString valueFromTr ( const QString &  value) const
virtualnoexcept

Implements AttributeType.

QString printableValueTr ( const QString &  value,
const AttributeUnit unit = nullptr 
) const
virtualnoexcept

Implements AttributeType.

static const AttrTypePower& instance ( )
inlinestaticnoexcept

+ Here is the caller graph for this function:

AttrTypePower& operator= ( const AttrTypePower rhs)
privatedelete

The documentation for this class was generated from the following files: