![]() |
PIP 5.6.1
Platform-Independent Primitives
|
Shared unit conversion infrastructure. More...
#include "pitranslator.h"Classes | |
| class | PIUnits::Class::Internal |
| Internal registry and base interfaces for unit families. More... | |
| class | PIUnits::Class::Internal::ClassBase |
| Base interface implemented by every unit family descriptor. More... | |
| class | PIUnits::Class::Internal::Registrator< P > |
| Helper that registers every type declared by unit family "P". More... | |
Namespaces | |
| namespace | PIUnits |
| Namespace containing unit metadata and conversion helpers. | |
| namespace | PIUnits::Class |
| Namespace containing unit family descriptors. | |
Macros | |
| #define | DECLARE_UNIT_CLASS_BEGIN(Name, StartIndex) |
| Units base classes. More... | |
| #define | DECLARE_UNIT_CLASS_END(Name) |
| Completes unit family class declaration and registers it globally. | |
Enumerations | |
| enum | |
| Common invalid unit type value. | |
Functions | |
| PIString | PIUnits::className (int type) |
| Returns unit family name for type identifier "type". | |
| PIString | PIUnits::name (int type) |
| Returns localized unit name for type identifier "type". | |
| PIString | PIUnits::unit (int type) |
| Returns localized unit symbol for type identifier "type". | |
| PIVector< Class::Internal::ClassBase * > | PIUnits::allClasses () |
| Returns all registered unit family descriptors. | |
Shared unit conversion infrastructure.
| #define DECLARE_UNIT_CLASS_BEGIN | ( | Name, | |
| StartIndex | |||
| ) |
Units base classes.
Unit conversions
These files provides unit conversion framework.
Ivan Pelipenko peri4.nosp@m.ko@y.nosp@m.andex.nosp@m..ru;
Starts declaration of a unit family class in namespace PIUnits::Class.