SEScalarAmount.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 AmountUnit : public CCompoundUnit
8{
9public:
10 AmountUnit(const std::string& u) : CCompoundUnit(u) {}
11 virtual ~AmountUnit() {}
12
13 // Please use static units below
14 AmountUnit(const AmountUnit&) = delete;
15 AmountUnit& operator= (const AmountUnit&) = delete;
16
17 static bool IsValidUnit(const std::string& unit);
18 static const AmountUnit& GetCompoundUnit(const std::string& unit);
19
20 static const AmountUnit mol;
21 static const AmountUnit pmol;
22};
23
24class CDM_DECL SEScalarAmount : public SEScalarQuantity<AmountUnit>
25{
26public:
28 virtual ~SEScalarAmount() {}
29};
Definition: SEScalarAmount.h:8
AmountUnit(const std::string &u)
Definition: SEScalarAmount.h:10
virtual ~AmountUnit()
Definition: SEScalarAmount.h:11
static const AmountUnit mol
Definition: SEScalarAmount.h:20
static const AmountUnit pmol
Definition: SEScalarAmount.h:21
AmountUnit(const AmountUnit &)=delete
Definition: CompoundUnit.h:40
CCompoundUnit & operator=(const CCompoundUnit &rhs)
Definition: CompoundUnit.h:132
Definition: SEScalarAmount.h:25
virtual ~SEScalarAmount()
Definition: SEScalarAmount.h:28
SEScalarAmount()
Definition: SEScalarAmount.h:27
Definition: SEScalar.h:208

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.