QuantityConversionDescriptor.h
1 /**************************************************************************************
2 Copyright 2015 Applied Research Associates, Inc.
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 this file except in compliance with the License. You may obtain a copy of the License
5 at:
6 http://www.apache.org/licenses/LICENSE-2.0
7 Unless required by applicable law or agreed to in writing, software distributed under
8 the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9 CONDITIONS OF ANY KIND, either express or implied. See the License for the
10 specific language governing permissions and limitations under the License.
11 **************************************************************************************/
12 
13 //----------------------------------------------------------------------------
19 //----------------------------------------------------------------------------
20 #pragma once
21 #include <string>
22 
23 namespace biogears {
24 class CCompoundUnit;
25 
27 public:
28  CQuantityConversionDescriptor(double fromExp, const char* mappingUnit);
29  CQuantityConversionDescriptor(double fromExp, const std::string& mappingUnit);
30 
32 
33  void Validate(int fromQTID, int toQTID);
34 
35  const double& GetFromExponent() const;
36  const CCompoundUnit* GetMappingUnit() const;
37 
38 private:
39  // What we raise the original quantity to
41 
42  // Mapping Unit Identifier
44 };}
Definition: QuantityConversionDescriptor.h:26
const double & GetFromExponent() const
Definition: QuantityConversionDescriptor.cpp:70
~CQuantityConversionDescriptor()
Definition: QuantityConversionDescriptor.cpp:38
Definition: CompoundUnit.h:59
CQuantityConversionDescriptor(double fromExp, const char *mappingUnit)
Definition: QuantityConversionDescriptor.cpp:26
void Validate(int fromQTID, int toQTID)
Definition: QuantityConversionDescriptor.cpp:49
const CCompoundUnit * GetMappingUnit() const
Definition: QuantityConversionDescriptor.cpp:75
CCompoundUnit * m_CUMappingUnit
Definition: QuantityConversionDescriptor.h:43
Definition: SEElectricalCircuit.h:18
double m_dFromExponent
Definition: QuantityConversionDescriptor.h:40