LibrePCB Developers Documentation
AttributeUnit Class Referencefinal

The AttributeUnit class. More...

#include <attributeunit.h>

+ Collaboration diagram for AttributeUnit:

Public Member Functions

 AttributeUnit ()=delete
 
 AttributeUnit (const AttributeUnit &other)=delete
 
 AttributeUnit (const QString &name, const QString &symbolTr, const QStringList &userInputSuffixes) noexcept
 
 ~AttributeUnit () noexcept
 
const QString & getName () const noexcept
 
const QString & getSymbolTr () const noexcept
 
const QStringList & getUserInputSuffixes () const noexcept
 
AttributeUnitoperator= (const AttributeUnit &rhs)=delete
 

Private Attributes

QString mName
 to convert from/to string, e.g. "millivolt" More...
 
QString mSymbolTr
 e.g. "mV" More...
 
QStringList mUserInputSuffixes
 user input suffixes, e.g. "k" or "meg" More...
 

Detailed Description

The AttributeUnit class.

Constructor & Destructor Documentation

◆ AttributeUnit() [1/3]

AttributeUnit ( )
delete

◆ AttributeUnit() [2/3]

AttributeUnit ( const AttributeUnit other)
delete

◆ AttributeUnit() [3/3]

AttributeUnit ( const QString &  name,
const QString &  symbolTr,
const QStringList &  userInputSuffixes 
)
explicitnoexcept

◆ ~AttributeUnit()

~AttributeUnit ( )
noexcept

Member Function Documentation

◆ getName()

const QString & getName ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getSymbolTr()

const QString & getSymbolTr ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getUserInputSuffixes()

const QStringList & getUserInputSuffixes ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ operator=()

AttributeUnit & operator= ( const AttributeUnit rhs)
delete

Member Data Documentation

◆ mName

QString mName
private

to convert from/to string, e.g. "millivolt"

◆ mSymbolTr

QString mSymbolTr
private

e.g. "mV"

◆ mUserInputSuffixes

QStringList mUserInputSuffixes
private

user input suffixes, e.g. "k" or "meg"


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