#include <Power.h>

Public Types

enum  UNITS { UNKNOWN = -1, WATT , END }
 

Static Public Member Functions

template<Power::UNITS u>
static std::string name ()
 
static std::string name (Power::UNITS u)
 
template<Power::UNITS u>
static double base ()
 
static double base (Power::UNITS u)
 
template<Power::UNITS to, Power::UNITS from>
static double factor ()
 
template<Power::UNITS to>
static double factor (Power::UNITS from)
 
static double factor (Power::UNITS to, Power::UNITS from)
 
static Power::UNITS units (const char *s)
 
static constexpr Power::UNITS units (int i)
 

Static Public Attributes

static const UNITS DEFAULT = WATT
 

Detailed Description

Examples:
tstPower.cpp.

Member Enumeration Documentation

enum UNITS
Enumerator
UNKNOWN 
WATT 
END 

Member Function Documentation

static std::string name ( )
static
std::string name ( Power::UNITS  u)
inlinestatic
static double base ( )
static
Examples:
tstPower.cpp.

Referenced by Power::base(), Power::factor(), and TEST().

double base ( Power::UNITS  u)
inlinestatic

References Power::base().

static double factor ( )
inlinestatic
static double factor ( Power::UNITS  from)
inlinestatic
static double factor ( Power::UNITS  to,
Power::UNITS  from 
)
inlinestatic

References Power::base().

Power::UNITS units ( const char *  s)
inlinestatic
static constexpr Power::UNITS units ( int  i)
inlinestatic

Member Data Documentation

const UNITS DEFAULT = WATT
static

The documentation for this struct was generated from the following files: