SEScalarAmountPerVolume.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 #pragma once
14 #include <biogears/cdm/properties/SEScalarQuantity.h>
15 
16 namespace biogears {
17 class BIOGEARS_API AmountPerVolumeUnit : public CCompoundUnit {
18 public:
19  AmountPerVolumeUnit(const char* u);
20  AmountPerVolumeUnit(const std::string& u);
21 
22  virtual ~AmountPerVolumeUnit() = default;
23 
24  static bool IsValidUnit(const char* unit);
25  static bool IsValidUnit(const std::string& unit);
26  static const AmountPerVolumeUnit& GetCompoundUnit(const char* unit);
27  static const AmountPerVolumeUnit& GetCompoundUnit(const std::string& unit);
28 
35 };
36 
37 class BIOGEARS_API SEScalarAmountPerVolume : public SEScalarQuantity<AmountPerVolumeUnit> {
38 
39 public:
40  SEScalarAmountPerVolume() = default;
41  virtual ~SEScalarAmountPerVolume() = default;
42 
43  CDM::ScalarAmountPerVolumeData* Unload() const override;
44 };
45 }
Definition: SEScalarQuantity.h:24
static AmountPerVolumeUnit mol_Per_mL
Definition: SEScalarAmountPerVolume.h:30
static AmountPerVolumeUnit ct_Per_L
Definition: SEScalarAmountPerVolume.h:33
Class corresponding to the ScalarAmountPerVolumeData schema type.
Definition: Properties.hxx:3949
static AmountPerVolumeUnit ct_Per_uL
Definition: SEScalarAmountPerVolume.h:34
static AmountPerVolumeUnit mmol_Per_mL
Definition: SEScalarAmountPerVolume.h:32
Definition: CompoundUnit.h:59
Definition: SEScalarAmountPerVolume.h:17
Definition: SEScalarAmountPerVolume.h:37
static AmountPerVolumeUnit mmol_Per_L
Definition: SEScalarAmountPerVolume.h:31
Definition: SEElectricalCircuit.h:18
static AmountPerVolumeUnit mol_Per_L
Definition: SEScalarAmountPerVolume.h:29