Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
UnitConversion.h File Reference
+ Include dependency graph for UnitConversion.h:

Go to the source code of this file.

Classes

class  FUnitSettings
 
struct  FUnitConversion
 
struct  FNumericUnit< NumericType >
 

Enumerations

enum class  EUnit : uint8 {
  Micrometers = 0x0 , Millimeters = 0x1 , Centimeters = 0x2 , Meters = 0x3 ,
  Kilometers = 0x4 , Inches = 0x5 , Feet = 0x6 , Yards = 0x7 ,
  Miles = 0x8 , Lightyears = 0x9 , Degrees = 0xA , Radians = 0xB ,
  CentimetersPerSecond = 0xC , MetersPerSecond = 0xD , KilometersPerHour = 0xE , MilesPerHour = 0xF ,
  Celsius = 0x10 , Farenheit = 0x11 , Kelvin = 0x12 , Micrograms = 0x13 ,
  Milligrams = 0x14 , Grams = 0x15 , Kilograms = 0x16 , MetricTons = 0x17 ,
  Ounces = 0x18 , Pounds = 0x19 , Stones = 0x1A , Newtons = 0x1B ,
  PoundsForce = 0x1C , KilogramsForce = 0x1D , Hertz = 0x1E , Kilohertz = 0x1F ,
  Megahertz = 0x20 , Gigahertz = 0x21 , RevolutionsPerMinute = 0x22 , Bytes = 0x23 ,
  Kilobytes = 0x24 , Megabytes = 0x25 , Gigabytes = 0x26 , Terabytes = 0x27 ,
  Lumens = 0x28 , Candela = 0x29 , Lux = 0x2A , CandelaPerMeter2 = 0x2B ,
  Nanoseconds = 0x2C , Microseconds = 0x2D , Milliseconds = 0x2E , Seconds = 0x2F ,
  Minutes = 0x30 , Hours = 0x31 , Days = 0x32 , Months = 0x33 ,
  Years = 0x34 , PixelsPerInch = 0x35 , Percentage = 0x36 , Multiplier = 0x37 ,
  Unspecified = 0x38 , Micrometers , Millimeters , Centimeters ,
  Meters , Kilometers , Inches , Feet ,
  Yards , Miles , Lightyears , Degrees ,
  Radians , CentimetersPerSecond , MetersPerSecond , KilometersPerHour ,
  MilesPerHour , Celsius , Farenheit , Kelvin ,
  Micrograms , Milligrams , Grams , Kilograms ,
  MetricTons , Ounces , Pounds , Stones ,
  Newtons , PoundsForce , KilogramsForce , Hertz ,
  Kilohertz , Megahertz , Gigahertz , RevolutionsPerMinute ,
  Bytes , Kilobytes , Megabytes , Gigabytes ,
  Terabytes , Lumens , Candela , Lux ,
  CandelaPerMeter2 , Nanoseconds , Microseconds , Milliseconds ,
  Seconds , Minutes , Hours , Days ,
  Months , Years , PixelsPerInch , Percentage ,
  Multiplier , Unspecified
}
 
enum class  EUnitType {
  Distance = 0x0 , Angle = 0x1 , Speed = 0x2 , Temperature = 0x3 ,
  Mass = 0x4 , Force = 0x5 , Frequency = 0x6 , DataSize = 0x7 ,
  LuminousFlux = 0x8 , LuminousIntensity = 0x9 , Illuminance = 0xA , Luminance = 0xB ,
  Time = 0xC , PixelDensity = 0xD , Multipliers = 0xE , NumberOf = 0xF ,
  Distance , Angle , Speed , Temperature ,
  Mass , Force , Frequency , DataSize ,
  LuminousFlux , LuminousIntensity , Illuminance , Luminance ,
  Time , PixelDensity , Multipliers , NumberOf
}
 

Functions

template<typename T >
FString LexToString (const FNumericUnit< T > &NumericUnit)
 
template<typename T >
FString LexToSanitizedString (const FNumericUnit< T > &NumericUnit)
 
template<typename T >
void LexFromString (FNumericUnit< T > &OutValue, const TCHAR *String)
 
template<typename T >
bool LexTryParseString (FNumericUnit< T > &OutValue, const TCHAR *String)
 

Enumeration Type Documentation

◆ EUnit

enum class EUnit : uint8
strong

Enum must be zero-indexed and sequential. Must be grouped by relevance and ordered by magnitude. Enum must match the mirrored enum that exists in CoreUObject/Classes/Object.h for the purposes of UObject reflection

Enumerator
Micrometers 
Millimeters 
Centimeters 
Meters 
Kilometers 
Inches 
Feet 
Yards 
Miles 
Lightyears 
Degrees 
Radians 
CentimetersPerSecond 
MetersPerSecond 
KilometersPerHour 
MilesPerHour 
Celsius 
Farenheit 
Kelvin 
Micrograms 
Milligrams 
Grams 
Kilograms 
MetricTons 
Ounces 
Pounds 
Stones 
Newtons 
PoundsForce 
KilogramsForce 
Hertz 
Kilohertz 
Megahertz 
Gigahertz 
RevolutionsPerMinute 
Bytes 
Kilobytes 
Megabytes 
Gigabytes 
Terabytes 
Lumens 
Candela 
Lux 
CandelaPerMeter2 
Nanoseconds 
Microseconds 
Milliseconds 
Seconds 
Minutes 
Hours 
Days 
Months 
Years 
PixelsPerInch 
Percentage 
Multiplier 
Unspecified 
Micrometers 

Scalar distance/length units

Millimeters 
Centimeters 
Meters 
Kilometers 
Inches 
Feet 
Yards 
Miles 
Lightyears 
Degrees 

Angular units

Radians 
CentimetersPerSecond 

Speed units

MetersPerSecond 
KilometersPerHour 
MilesPerHour 
Celsius 

Temperature units

Farenheit 
Kelvin 
Micrograms 

Mass units

Milligrams 
Grams 
Kilograms 
MetricTons 
Ounces 
Pounds 
Stones 
Newtons 

Force units

PoundsForce 
KilogramsForce 
Hertz 

Frequency units

Kilohertz 
Megahertz 
Gigahertz 
RevolutionsPerMinute 
Bytes 

Data Size units

Kilobytes 
Megabytes 
Gigabytes 
Terabytes 
Lumens 

Luminous flux units, luminous intensity, illuminance, luminance

Candela 
Lux 
CandelaPerMeter2 
Nanoseconds 

Time units

Microseconds 
Milliseconds 
Seconds 
Minutes 
Hours 
Days 
Months 
Years 
PixelsPerInch 

Pixel density units

Percentage 

Arbitrary multipliers

Multiplier 
Unspecified 

Symbolic entry, not specifiable on meta data

Definition at line 18 of file UnitConversion.h.

◆ EUnitType

Enumeration that specifies particular classes of unit

Enumerator
Distance 
Angle 
Speed 
Temperature 
Mass 
Force 
Frequency 
DataSize 
LuminousFlux 
LuminousIntensity 
Illuminance 
Luminance 
Time 
PixelDensity 
Multipliers 
NumberOf 
Distance 
Angle 
Speed 
Temperature 
Mass 
Force 
Frequency 
DataSize 
LuminousFlux 
LuminousIntensity 
Illuminance 
Luminance 
Time 
PixelDensity 
Multipliers 
NumberOf 

Definition at line 64 of file UnitConversion.h.

Function Documentation

◆ LexFromString()

template<typename T >
void LexFromString ( FNumericUnit< T > & OutValue,
const TCHAR * String )

Definition at line 408 of file UnitConversion.inl.

◆ LexToSanitizedString()

template<typename T >
FString LexToSanitizedString ( const FNumericUnit< T > & NumericUnit)

Definition at line 398 of file UnitConversion.inl.

◆ LexToString()

template<typename T >
FString LexToString ( const FNumericUnit< T > & NumericUnit)

Definition at line 388 of file UnitConversion.inl.

◆ LexTryParseString()

template<typename T >
bool LexTryParseString ( FNumericUnit< T > & OutValue,
const TCHAR * String )

Definition at line 418 of file UnitConversion.inl.