FreeCAD C++
Public Member Functions | List of all members
Base::Unit Class Reference

#include <Base/Unit.h>

Detailed Description

The Unit class.

Public Member Functions

 Unit (int8_t Length, int8_t Mass=0, int8_t Time=0, int8_t ElectricCurrent=0, int8_t ThermodynamicTemperature=0, int8_t AmountOfSubstance=0, int8_t LuminousIntensity=0, int8_t Angle=0)
 default constructor
 
 ~Unit ()
 Destruction.
 
const UnitSignature & getSignature (void) const
 get the unit signature
 
QString getTypeString (void) const
 get the type as an string such as "Area", "Length" or "Pressure".
 
Unitoperator *= (const Unit &that)
 

Static Public Attributes

static Unit Length
 Length unit. More...
 
static Unit Mass
 Mass unit.
 
static Unit Angle
 Angle.
 

Member Function Documentation

◆ operator *=()

Unit & Base::Unit::operator *= ( const Unit that)

Operators.

Member Data Documentation

◆ Length

Unit Base::Unit::Length
static

Length unit.

Predefined Unit types.