Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CTemperature Class Reference

#include <Temperature.h>

Inheritance diagram for CTemperature:
IArchivable

Public Types

enum  Unit {
  UnitFahrenheit = 0 , UnitKelvin , UnitCelsius , UnitReaumur ,
  UnitRankine , UnitRomer , UnitDelisle , UnitNewton
}
 
typedef enum CTemperature::Unit Unit
 

Public Member Functions

 CTemperature ()
 
 CTemperature (const CTemperature &temperature)
 
bool operator> (const CTemperature &right) const
 
bool operator>= (const CTemperature &right) const
 
bool operator< (const CTemperature &right) const
 
bool operator<= (const CTemperature &right) const
 
bool operator== (const CTemperature &right) const
 
bool operator!= (const CTemperature &right) const
 
CTemperatureoperator= (const CTemperature &right)
 
const CTemperatureoperator+= (const CTemperature &right)
 
const CTemperatureoperator-= (const CTemperature &right)
 
const CTemperatureoperator*= (const CTemperature &right)
 
const CTemperatureoperator/= (const CTemperature &right)
 
CTemperature operator+ (const CTemperature &right) const
 
CTemperature operator- (const CTemperature &right) const
 
CTemperature operator* (const CTemperature &right) const
 
CTemperature operator/ (const CTemperature &right) const
 
bool operator> (double right) const
 
bool operator>= (double right) const
 
bool operator< (double right) const
 
bool operator<= (double right) const
 
bool operator== (double right) const
 
bool operator!= (double right) const
 
const CTemperatureoperator+= (double right)
 
const CTemperatureoperator-= (double right)
 
const CTemperatureoperator*= (double right)
 
const CTemperatureoperator/= (double right)
 
CTemperature operator+ (double right) const
 
CTemperature operator- (double right) const
 
CTemperature operator* (double right) const
 
CTemperature operator/ (double right) const
 
CTemperatureoperator++ ()
 
CTemperatureoperator-- ()
 
CTemperature operator++ (int)
 
CTemperature operator-- (int)
 
void Archive (CArchive &ar) override
 
bool IsValid () const
 
void SetValid (bool valid)
 
double ToFahrenheit () const
 
double ToKelvin () const
 
double ToCelsius () const
 
double ToReaumur () const
 
double ToRankine () const
 
double ToRomer () const
 
double ToDelisle () const
 
double ToNewton () const
 
double To (Unit temperatureUnit) const
 
std::string ToString (Unit temperatureUnit) const
 
- Public Member Functions inherited from IArchivable

Static Public Member Functions

static CTemperature CreateFromFahrenheit (double value)
 
static CTemperature CreateFromKelvin (double value)
 
static CTemperature CreateFromCelsius (double value)
 
static CTemperature CreateFromReaumur (double value)
 
static CTemperature CreateFromRankine (double value)
 
static CTemperature CreateFromRomer (double value)
 
static CTemperature CreateFromDelisle (double value)
 
static CTemperature CreateFromNewton (double value)
 

Protected Member Functions

 CTemperature (double value)
 
- Protected Member Functions inherited from IArchivable
virtual ~IArchivable ()=default
 

Protected Attributes

double m_value
 
bool m_valid
 

Member Typedef Documentation

◆ Unit

Member Enumeration Documentation

◆ Unit

Enumerator
UnitFahrenheit 
UnitKelvin 
UnitCelsius 
UnitReaumur 
UnitRankine 
UnitRomer 
UnitDelisle 
UnitNewton 

Constructor & Destructor Documentation

◆ CTemperature() [1/3]

CTemperature::CTemperature ( )

◆ CTemperature() [2/3]

CTemperature::CTemperature ( const CTemperature & temperature)

◆ CTemperature() [3/3]

CTemperature::CTemperature ( double value)
explicitprotected

Member Function Documentation

◆ Archive()

void CTemperature::Archive ( CArchive & ar)
overridevirtual

Implements IArchivable.

◆ CreateFromCelsius()

CTemperature CTemperature::CreateFromCelsius ( double value)
static

◆ CreateFromDelisle()

CTemperature CTemperature::CreateFromDelisle ( double value)
static

◆ CreateFromFahrenheit()

CTemperature CTemperature::CreateFromFahrenheit ( double value)
static

◆ CreateFromKelvin()

CTemperature CTemperature::CreateFromKelvin ( double value)
static

◆ CreateFromNewton()

CTemperature CTemperature::CreateFromNewton ( double value)
static

◆ CreateFromRankine()

CTemperature CTemperature::CreateFromRankine ( double value)
static

◆ CreateFromReaumur()

CTemperature CTemperature::CreateFromReaumur ( double value)
static

◆ CreateFromRomer()

CTemperature CTemperature::CreateFromRomer ( double value)
static

◆ IsValid()

bool CTemperature::IsValid ( ) const

◆ operator!=() [1/2]

bool CTemperature::operator!= ( const CTemperature & right) const

◆ operator!=() [2/2]

bool CTemperature::operator!= ( double right) const

◆ operator*() [1/2]

CTemperature CTemperature::operator* ( const CTemperature & right) const

◆ operator*() [2/2]

CTemperature CTemperature::operator* ( double right) const

◆ operator*=() [1/2]

const CTemperature & CTemperature::operator*= ( const CTemperature & right)

◆ operator*=() [2/2]

const CTemperature & CTemperature::operator*= ( double right)

◆ operator+() [1/2]

CTemperature CTemperature::operator+ ( const CTemperature & right) const

◆ operator+() [2/2]

CTemperature CTemperature::operator+ ( double right) const

◆ operator++() [1/2]

CTemperature & CTemperature::operator++ ( )

◆ operator++() [2/2]

CTemperature CTemperature::operator++ ( int )

◆ operator+=() [1/2]

const CTemperature & CTemperature::operator+= ( const CTemperature & right)

◆ operator+=() [2/2]

const CTemperature & CTemperature::operator+= ( double right)

◆ operator-() [1/2]

CTemperature CTemperature::operator- ( const CTemperature & right) const

◆ operator-() [2/2]

CTemperature CTemperature::operator- ( double right) const

◆ operator--() [1/2]

CTemperature & CTemperature::operator-- ( )

◆ operator--() [2/2]

CTemperature CTemperature::operator-- ( int )

◆ operator-=() [1/2]

const CTemperature & CTemperature::operator-= ( const CTemperature & right)

◆ operator-=() [2/2]

const CTemperature & CTemperature::operator-= ( double right)

◆ operator/() [1/2]

CTemperature CTemperature::operator/ ( const CTemperature & right) const

◆ operator/() [2/2]

CTemperature CTemperature::operator/ ( double right) const

◆ operator/=() [1/2]

const CTemperature & CTemperature::operator/= ( const CTemperature & right)

◆ operator/=() [2/2]

const CTemperature & CTemperature::operator/= ( double right)

◆ operator<() [1/2]

bool CTemperature::operator< ( const CTemperature & right) const

◆ operator<() [2/2]

bool CTemperature::operator< ( double right) const

◆ operator<=() [1/2]

bool CTemperature::operator<= ( const CTemperature & right) const

◆ operator<=() [2/2]

bool CTemperature::operator<= ( double right) const

◆ operator=()

CTemperature & CTemperature::operator= ( const CTemperature & right)

◆ operator==() [1/2]

bool CTemperature::operator== ( const CTemperature & right) const

◆ operator==() [2/2]

bool CTemperature::operator== ( double right) const

◆ operator>() [1/2]

bool CTemperature::operator> ( const CTemperature & right) const

◆ operator>() [2/2]

bool CTemperature::operator> ( double right) const

◆ operator>=() [1/2]

bool CTemperature::operator>= ( const CTemperature & right) const

◆ operator>=() [2/2]

bool CTemperature::operator>= ( double right) const

◆ SetValid()

void CTemperature::SetValid ( bool valid)
inline

◆ To()

double CTemperature::To ( Unit temperatureUnit) const

◆ ToCelsius()

double CTemperature::ToCelsius ( ) const

◆ ToDelisle()

double CTemperature::ToDelisle ( ) const

◆ ToFahrenheit()

double CTemperature::ToFahrenheit ( ) const

◆ ToKelvin()

double CTemperature::ToKelvin ( ) const

◆ ToNewton()

double CTemperature::ToNewton ( ) const

◆ ToRankine()

double CTemperature::ToRankine ( ) const

◆ ToReaumur()

double CTemperature::ToReaumur ( ) const

◆ ToRomer()

double CTemperature::ToRomer ( ) const

◆ ToString()

std::string CTemperature::ToString ( Unit temperatureUnit) const

Member Data Documentation

◆ m_valid

bool CTemperature::m_valid
protected

◆ m_value

double CTemperature::m_value
protected

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