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 {
15 public:
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 
32 private:
33  // What we raise the original quantity to
35 
36  // Mapping Unit Identifier
38 };
Definition: QuantityConversionDescriptor.h:13
CQuantityConversionDescriptor(double fromExp, const std::string &mappingUnit)
Definition: QuantityConversionDescriptor.cpp:12
void Validate(int fromQTID, int toQTID)
Definition: QuantityConversionDescriptor.cpp:31
double m_dFromExponent
Definition: QuantityConversionDescriptor.h:34
CCompoundUnit * m_CUMappingUnit
Definition: QuantityConversionDescriptor.h:37
const CCompoundUnit * GetMappingUnit() const
Definition: QuantityConversionDescriptor.h:27
const double & GetFromExponent() const
Definition: QuantityConversionDescriptor.h:22
Definition: CompoundUnit.h:39
~CQuantityConversionDescriptor()
Definition: QuantityConversionDescriptor.cpp:20