namespace Poco::Util::Units
Overview
namespace Units { // namespaces namespace Poco::Util::Units::Constants; namespace Poco::Util::Units::Internal; namespace Poco::Util::Units::Units; namespace Poco::Util::Units::Values; // typedefs typedef Power<Internal::None, 0> Unit; // structs template < typename Unit1, typename Unit2 > struct Compose; template <typename U> struct OutputUnit; template < typename U, int Num, int Den = 1 > struct Power; template < typename U, int Num, int Den = 1 > struct Scale; template < typename U, int Num, int Den = 1 > struct Translate; // classes template < typename V, typename U > class Value; // global functions template < typename V, typename U > Value<V, Power<U, -1>> operator/( const V& a, const Value<V, U>& b ); template < typename V, typename U > Value<V, U> operator*( const V& a, const Value<V, U>& b ); template < typename V, typename U > Value<V, Power<U, 1, 2>> sqrt(const Value<V, U>& a); template < typename V, typename U > Value<V, Power<U, 2, 1>> square(const Value<V, U>& a); template < typename V, typename U > Value<V, Power<U, 3, 1>> cube(const Value<V, U>& a); template < int Num, int Den, typename V, typename U > Value<V, Power<U, Num, Den>> raise(const Value<V, U>& a); UNIT_DISPLAY_NAME( Unit, "1" ); template < typename Str, typename V, typename U > Str& operator<<( Str& os, const Value<V, U>& value ); UNIT_DISPLAY_NAME( Units::m, "m" ); UNIT_DISPLAY_NAME( Units::kg, "kg" ); UNIT_DISPLAY_NAME( Units::s, "s" ); UNIT_DISPLAY_NAME( Units::K, "K" ); UNIT_DISPLAY_NAME( Units::A, "A" ); UNIT_DISPLAY_NAME( Units::mol, "mol" ); UNIT_DISPLAY_NAME( Units::cd, "cd" ); UNIT_DISPLAY_NAME( Units::rad, "rad" ); UNIT_DISPLAY_NAME( Units::sr, "sr" ); UNIT_DISPLAY_NAME( Units::N, "N" ); UNIT_DISPLAY_NAME( Units::Pa, "Pa" ); UNIT_DISPLAY_NAME( Units::J, "J" ); UNIT_DISPLAY_NAME( Units::W, "W" ); UNIT_DISPLAY_NAME( Units::C, "C" ); UNIT_DISPLAY_NAME( Units::V, "V" ); UNIT_DISPLAY_NAME( Units::F, "F" ); UNIT_DISPLAY_NAME( Units::Ohm, "Ohm" ); UNIT_DISPLAY_NAME( Units::S, "S" ); UNIT_DISPLAY_NAME( Units::Wb, "Wb" ); UNIT_DISPLAY_NAME( Units::T, "T" ); UNIT_DISPLAY_NAME( Units::H, "H" ); UNIT_DISPLAY_NAME( Units::lx, "lx" ); UNIT_DISPLAY_NAME( Units::Gy, "Gy" ); UNIT_DISPLAY_NAME( Units::kat, "kat" ); template <typename Str> Str& streamOp( Str& os, const Units::Prefix& val ); template <typename Str> Str& operator<<( Str& os, const Units::Prefix& val ); UNIT_DISPLAY_NAME( Units::cm, "cm" ); UNIT_DISPLAY_NAME( Units::mm, "mm" ); UNIT_DISPLAY_NAME( Units::km, "km" ); UNIT_DISPLAY_NAME( Units::g, "g" ); UNIT_DISPLAY_NAME( Units::mg, "mg" ); UNIT_DISPLAY_NAME( Units::ms, "ms" ); UNIT_DISPLAY_NAME( Units::lb, "lb" ); UNIT_DISPLAY_NAME( Units::oz, "oz" ); UNIT_DISPLAY_NAME( Units::tonne, "tonnes" ); UNIT_DISPLAY_NAME( Units::Celsius, "'C" ); UNIT_DISPLAY_NAME( Units::Fahrenheit, "'F" ); UNIT_DISPLAY_NAME( Units::minute, "minutes" ); UNIT_DISPLAY_NAME( Units::hour, "hours" ); UNIT_DISPLAY_NAME( Units::day, "days" ); UNIT_DISPLAY_NAME( Units::week, "weeks" ); UNIT_DISPLAY_NAME( Units::month, "months" ); UNIT_DISPLAY_NAME( Units::year, "years" ); UNIT_DISPLAY_NAME( Units::century, "centuries" ); UNIT_DISPLAY_NAME( Units::millennium, "millennia" ); UNIT_DISPLAY_NAME( Units::inch, "inches" ); UNIT_DISPLAY_NAME( Units::foot, "foot" ); UNIT_DISPLAY_NAME( Units::yard, "yards" ); UNIT_DISPLAY_NAME( Units::mile, "miles" ); UNIT_DISPLAY_NAME( Units::nautical_mile, "nautical miles" ); UNIT_DISPLAY_NAME( Units::hectare, "ha" ); UNIT_DISPLAY_NAME( Units::are, "are" ); UNIT_DISPLAY_NAME( Units::acre, "acres" ); UNIT_DISPLAY_NAME( Units::ml, "ml" ); UNIT_DISPLAY_NAME( Units::liter, "l" ); UNIT_DISPLAY_NAME( Units::dl, "dl" ); UNIT_DISPLAY_NAME( Units::cl, "cl" ); UNIT_DISPLAY_NAME( Units::mph, "mph" ); UNIT_DISPLAY_NAME( Units::kph, "km/h" ); UNIT_DISPLAY_NAME( Units::knot, "knots" ); UNIT_DISPLAY_NAME( Units::mach, "mach" ); UNIT_DISPLAY_NAME( Units::degree, "deg" ); UNIT_DISPLAY_NAME( Units::grad, "grad" ); UNIT_DISPLAY_NAME( Units::degree_minute, "'" ); UNIT_DISPLAY_NAME( Units::degree_second, "\ ); UNIT_DISPLAY_NAME( Units::kPa, "kPa" ); UNIT_DISPLAY_NAME( Units::psi, "PSI" ); UNIT_DISPLAY_NAME( Units::millibar, "millibars" ); UNIT_DISPLAY_NAME( Units::percent, "%" ); UNIT_DISPLAY_NAME( Units::rpm, "rpm" ); UNIT_DISPLAY_NAME( Units::dozen, "dozen" ); UNIT_DISPLAY_NAME( Units::bakers_dozen, "bakers dozen" ); template < typename V, typename U > V sin(const Value<V, U>& angle); template < typename V, typename U > V cos(const Value<V, U>& angle); template < typename V, typename U > V tan(const Value<V, U>& angle); } // namespace Units
Detailed Documentation
Global Functions
template <typename Str> Str& operator<<( Str& os, const Units::Prefix& val )
Streaming operator for prefixed values.