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

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.