FlightGear next
QuantityValue Class Reference

#include <UnitsModel.hxx>

Public Member Functions

 QuantityValue ()
 
 QuantityValue (Units::Type u, double v)
 
 QuantityValue (Units::Type u, int v)
 
QuantityValue convertToUnit (Units::Type u) const
 
Q_INVOKABLE QuantityValue convertToUnit (int u) const
 
Q_INVOKABLE QString toString () const
 
Q_INVOKABLE bool isValid () const
 
bool operator== (const QuantityValue &v) const
 
bool operator!= (const QuantityValue &v) const
 

Properties

double value = 0.0
 
Units::Type unit = Units::NoUnits
 

Detailed Description

Definition at line 83 of file UnitsModel.hxx.

Constructor & Destructor Documentation

◆ QuantityValue() [1/3]

QuantityValue::QuantityValue ( )

Definition at line 302 of file UnitsModel.cxx.

◆ QuantityValue() [2/3]

QuantityValue::QuantityValue ( Units::Type u,
double v )

Definition at line 306 of file UnitsModel.cxx.

◆ QuantityValue() [3/3]

QuantityValue::QuantityValue ( Units::Type u,
int v )

Definition at line 312 of file UnitsModel.cxx.

Member Function Documentation

◆ convertToUnit() [1/2]

QuantityValue QuantityValue::convertToUnit ( int u) const

Definition at line 424 of file UnitsModel.cxx.

◆ convertToUnit() [2/2]

QuantityValue QuantityValue::convertToUnit ( Units::Type u) const

Definition at line 319 of file UnitsModel.cxx.

◆ isValid()

bool QuantityValue::isValid ( ) const

Definition at line 448 of file UnitsModel.cxx.

◆ operator!=()

bool QuantityValue::operator!= ( const QuantityValue & v) const

Definition at line 464 of file UnitsModel.cxx.

◆ operator==()

bool QuantityValue::operator== ( const QuantityValue & v) const

Definition at line 453 of file UnitsModel.cxx.

◆ toString()

QString QuantityValue::toString ( ) const

Definition at line 429 of file UnitsModel.cxx.

Property Documentation

◆ unit

Units::Type QuantityValue::unit = Units::NoUnits

Definition at line 88 of file UnitsModel.hxx.

◆ value

double QuantityValue::value = 0.0

Definition at line 87 of file UnitsModel.hxx.


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