PIP 5.6.1
Platform-Independent Primitives
Public Types | Public Member Functions | List of all members
PIUnits::Class::Temperature Class Reference

Descriptor of temperature units and their public type identifiers. More...

#include <piunits_class_temperature.h>

Inheritance diagram for PIUnits::Class::Temperature:
Inheritance graph
[legend]

Public Types

enum  { }
 Supported temperature unit type identifiers. More...
 

Public Member Functions

PIString className () const override
 Returns localized family name.
 
uint classID () const override
 Returns stable identifier of the unit family.
 
- Public Member Functions inherited from PIUnits::Class::Internal::ClassBase
virtual uint classID () const =0
 Returns stable identifier of the unit family.
 
virtual PIString className () const =0
 Returns localized family name.
 
virtual PIString name (int type) const =0
 Returns localized name of unit type "type".
 
virtual PIString unit (int type) const =0
 Returns localized symbol of unit type "type".
 
virtual PIString valueToString (double v, char format='g', int prec=5) const =0
 Formats numeric value "v" without unit symbol.
 
virtual double convert (double v, int from, int to) const =0
 Converts numeric value "v" from unit "from" to unit "to".
 
virtual bool supportPrefixes (int type) const
 Returns whether unit type "type" supports automatic SI prefixes.
 
virtual bool supportPrefixesNon3 (int type) const
 Returns whether non-multiple-of-three prefixes are allowed for unit type "type".
 
virtual bool supportPrefixesGreater (int type) const
 Returns whether prefixes larger than the base unit are allowed for type "type".
 
virtual bool supportPrefixesSmaller (int type) const
 Returns whether prefixes smaller than the base unit are allowed for type "type".
 
const PIVector< int > & allTypes () const
 Returns all registered unit type identifiers of this family.
 

Additional Inherited Members

- Static Public Member Functions inherited from PIUnits::Class::Internal::Registrator< Temperature >
static void registerSelf ()
 Registers unit family "P" in shared lookup tables.
 

Detailed Description

Descriptor of temperature units and their public type identifiers.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Supported temperature unit type identifiers.

Enumerator
Celsius 

Celsius

Fahrenheit 

Fahrenheit