PIP 6.1.0
Platform-Independent Primitives
Loading...
Searching...
No Matches
PIUnits::Class::Time Class Reference

Descriptor of time and frequency units and their public type identifiers. More...

#include <piunits_class_time.h>

Inheritance diagram for PIUnits::Class::Time:

Public Types

enum  { }
 Supported time 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
const PIVector< int > & allTypes () const
 Returns all registered unit type identifiers of this family.

Private Member Functions

PIString name (int type) const override
 Returns localized name of unit type "type".
PIString unit (int type) const override
 Returns localized symbol of unit type "type".
PIString valueToString (double v, char format, int prec) const override
 Formats numeric value "v" without unit symbol.
double convert (double v, int from, int to) const override
 Converts numeric value "v" from unit "from" to unit "to".
bool supportPrefixes (int type) const override
 Returns whether unit type "type" supports automatic SI prefixes.
bool supportPrefixesNon3 (int type) const override
 Returns whether non-multiple-of-three prefixes are allowed for unit type "type".
bool supportPrefixesGreater (int type) const override
 Returns whether prefixes larger than the base unit are allowed for type "type".
bool supportPrefixesSmaller (int type) const override
 Returns whether prefixes smaller than the base unit are allowed for type "type".

Additional Inherited Members

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

Detailed Description

Descriptor of time and frequency units and their public type identifiers.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Supported time unit type identifiers.

Enumerator
Hertz 

Hertz