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

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.