SEScalarMass.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 #include "properties/SEScalar.h"
6 
7 class CDM_DECL MassUnit : public CCompoundUnit
8 {
9 public:
10  MassUnit(const std::string& u) : CCompoundUnit(u) {}
11  virtual ~MassUnit() {}
12 
13  static bool IsValidUnit(const std::string& unit);
14  static const MassUnit& GetCompoundUnit(const std::string& unit);
15 
16  static const MassUnit ug;
17  static const MassUnit mg;
18  static const MassUnit g;
19  static const MassUnit kg;
20  static const MassUnit lb;
21 };
22 
23 class CDM_DECL SEScalarMass : public SEScalarQuantity<MassUnit>
24 {
25 public:
27  virtual ~SEScalarMass() {}
28 };
Definition: SEScalarMass.h:23
static const MassUnit kg
Definition: SEScalarMass.h:19
static const MassUnit g
Definition: SEScalarMass.h:18
SEScalarMass()
Definition: SEScalarMass.h:26
Definition: SEScalar.h:127
virtual ~SEScalarMass()
Definition: SEScalarMass.h:27
static const MassUnit ug
Definition: SEScalarMass.h:16
MassUnit(const std::string &u)
Definition: SEScalarMass.h:10
static const MassUnit lb
Definition: SEScalarMass.h:20
virtual ~MassUnit()
Definition: SEScalarMass.h:11
Definition: SEScalarMass.h:7
Definition: CompoundUnit.h:39
static const MassUnit mg
Definition: SEScalarMass.h:17