#include <UnitDescriptor.h>

Public Types

enum  PrefixModeType { NONE , SOME , ALLBUT , ALL }
 

Public Member Functions

 CUnitDescriptor (const std::string &name, const std::string &symbol, unsigned int quantityTypeId, const std::string &targetUnit, const double &convFac, const double &bias, PrefixModeType mode, const std::string &prefixSet)
 
bool IsPrefixAllowed (char prefix) const
 
const double & GetConvFac () const
 
const double & GetBias () const
 
const std::string & GetName () const
 
const std::string & GetSymbol () const
 
unsigned int GetQuantityTypeID () const
 
bool IsDecibel () const
 

Private Attributes

double m_dConvFac
 
double m_dBias
 
std::string m_strName
 
std::string m_strSymbol
 
unsigned int m_uiQuantityTypeId
 
PrefixModeType m_uiPrefixMode
 
std::string m_strPrefixSet
 
bool m_bDBFlag
 

Member Enumeration Documentation

◆ PrefixModeType

Enumerator
NONE 
SOME 
ALLBUT 
ALL 

Constructor & Destructor Documentation

◆ CUnitDescriptor()

CUnitDescriptor::CUnitDescriptor ( const std::string &  name,
const std::string &  symbol,
unsigned int  quantityTypeId,
const std::string &  targetUnit,
const double &  convFac,
const double &  bias,
PrefixModeType  mode,
const std::string &  prefixSet 
)

Member Function Documentation

◆ GetBias()

const double & CUnitDescriptor::GetBias ( ) const
inline

◆ GetConvFac()

const double & CUnitDescriptor::GetConvFac ( ) const
inline

◆ GetName()

const std::string & CUnitDescriptor::GetName ( ) const
inline

◆ GetQuantityTypeID()

unsigned int CUnitDescriptor::GetQuantityTypeID ( ) const
inline

◆ GetSymbol()

const std::string & CUnitDescriptor::GetSymbol ( ) const
inline

◆ IsDecibel()

bool CUnitDescriptor::IsDecibel ( ) const
inline

◆ IsPrefixAllowed()

bool CUnitDescriptor::IsPrefixAllowed ( char  prefix) const

Member Data Documentation

◆ m_bDBFlag

bool CUnitDescriptor::m_bDBFlag
private

◆ m_dBias

double CUnitDescriptor::m_dBias
private

◆ m_dConvFac

double CUnitDescriptor::m_dConvFac
private

◆ m_strName

std::string CUnitDescriptor::m_strName
private

◆ m_strPrefixSet

std::string CUnitDescriptor::m_strPrefixSet
private

◆ m_strSymbol

std::string CUnitDescriptor::m_strSymbol
private

◆ m_uiPrefixMode

PrefixModeType CUnitDescriptor::m_uiPrefixMode
private

◆ m_uiQuantityTypeId

unsigned int CUnitDescriptor::m_uiQuantityTypeId
private

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.