#include <Time.h>

Public Types

enum  UNITS {
  UNKNOWN = -1, SECONDS, MINUTES, HOURS,
  DAYS, YEARS, END
}
 

Static Public Member Functions

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

Static Public Attributes

static const UNITS DEFAULT = SECONDS
 

Detailed Description

Examples:
tstTime.cpp.

Member Enumeration Documentation

enum UNITS
Enumerator
UNKNOWN 
SECONDS 
MINUTES 
HOURS 
DAYS 
YEARS 
END 

Member Function Documentation

static std::string name ( )
static
Examples:
tstTime.cpp.

Referenced by TEST().

std::string name ( Time::UNITS  u)
inlinestatic
static double base ( )
static
double base ( Time::UNITS  u)
inlinestatic
static double factor ( )
inlinestatic
Examples:
tstTime.cpp.

Referenced by TEST().

static double factor ( Time::UNITS  from)
inlinestatic

References Time::base().

static double factor ( Time::UNITS  to,
Time::UNITS  from 
)
inlinestatic
Time::UNITS units ( const char *  s)
inlinestatic
Examples:
tstTime.cpp.

Referenced by TEST().

static constexpr Time::UNITS units ( int  i)
inlinestatic

Member Data Documentation

const UNITS DEFAULT = SECONDS
static

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