#include <SEScalarTime.h>

Inherits CCompoundUnit.

Public Member Functions

 TimeUnit (const std::string &u)
 
virtual ~TimeUnit ()
 
 TimeUnit (const TimeUnit &)=delete
 
TimeUnitoperator= (const TimeUnit &)=delete
 
- Public Member Functions inherited from CCompoundUnit
 CCompoundUnit ()
 
 CCompoundUnit (const std::string &unitString)
 
 CCompoundUnit (const CCompoundUnit &src)
 
virtual ~CCompoundUnit ()
 
const CUnitDimensionGetDimension () const
 
const double & GetBigness () const
 
double GetBias () const
 
CCompoundUnitoperator= (const CCompoundUnit &rhs)
 
CCompoundUnitoperator*= (const CCompoundUnit &rhs)
 
CCompoundUnitoperator/= (const CCompoundUnit &rhs)
 
CCompoundUnit operator* (const CCompoundUnit &rhs) const
 
CCompoundUnit operator/ (const CCompoundUnit &rhs) const
 
CCompoundUnitRaise (CCompoundUnitElement::ExponentType)
 
bool operator== (const CCompoundUnit &rhs) const
 
bool operator!= (const CCompoundUnit &rhs) const
 
bool IsOfType (int quantityTypeID)
 
bool IsOfType (const std::string &quantityName)
 
bool IsDimensionless () const
 
bool IsDecibel () const
 
bool IsUnitEmpty () const
 
double GetDecibelLogScaleFactor () const
 
void DecibelModeOn ()
 
void DecibelModeOff ()
 
CCompoundUnitElementAddElement (const CCompoundUnitElement &)
 
void clear ()
 
void ParseString (const std::string &unitString)
 
std::string GetString () const
 
std::ostream & PrintSelf (std::ostream &output) const
 

Static Public Member Functions

static bool IsValidUnit (const std::string &unit)
 
static const TimeUnitGetCompoundUnit (const std::string &unit)
 

Static Public Attributes

static const TimeUnit s
 
static const TimeUnit min
 
static const TimeUnit hr
 
static const TimeUnit day
 
static const TimeUnit yr
 

Additional Inherited Members

- Protected Member Functions inherited from CCompoundUnit
void BuildDimension () const
 
void ComputeBigness () const
 

Constructor & Destructor Documentation

◆ TimeUnit() [1/2]

TimeUnit::TimeUnit ( const std::string &  u)
inline

◆ ~TimeUnit()

virtual TimeUnit::~TimeUnit ( )
inlinevirtual

◆ TimeUnit() [2/2]

TimeUnit::TimeUnit ( const TimeUnit )
delete

Member Function Documentation

◆ GetCompoundUnit()

const TimeUnit & TimeUnit::GetCompoundUnit ( const std::string &  unit)
static

◆ IsValidUnit()

bool TimeUnit::IsValidUnit ( const std::string &  unit)
static

◆ operator=()

TimeUnit & TimeUnit::operator= ( const TimeUnit )
delete

Member Data Documentation

◆ day

const TimeUnit TimeUnit::day
static

◆ hr

const TimeUnit TimeUnit::hr
static

◆ min

const TimeUnit TimeUnit::min
static

◆ s

const TimeUnit TimeUnit::s
static

◆ yr

const TimeUnit TimeUnit::yr
static

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.