QuantityConversionDescriptor.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4//----------------------------------------------------------------------------
10//----------------------------------------------------------------------------
11#pragma once
12
14{
15public:
16 CQuantityConversionDescriptor(double fromExp, const std::string & mappingUnit);
17
19
20 void Validate(int fromQTID, int toQTID);
21
22 const double &GetFromExponent() const
23 {
24 return m_dFromExponent;
25 }
26
28 {
29 return m_CUMappingUnit;
30 }
31
32private:
33 // What we raise the original quantity to
35
36 // Mapping Unit Identifier
38};
Definition: CompoundUnit.h:40
Definition: QuantityConversionDescriptor.h:14
void Validate(int fromQTID, int toQTID)
Definition: QuantityConversionDescriptor.cpp:31
CCompoundUnit * m_CUMappingUnit
Definition: QuantityConversionDescriptor.h:37
CQuantityConversionDescriptor(double fromExp, const std::string &mappingUnit)
Definition: QuantityConversionDescriptor.cpp:12
const CCompoundUnit * GetMappingUnit() const
Definition: QuantityConversionDescriptor.h:27
~CQuantityConversionDescriptor()
Definition: QuantityConversionDescriptor.cpp:20
const double & GetFromExponent() const
Definition: QuantityConversionDescriptor.h:22
double m_dFromExponent
Definition: QuantityConversionDescriptor.h:34

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.