SEScalarPower.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 PowerUnit : public CCompoundUnit
8 {
9 public:
10  PowerUnit(const std::string& u) : CCompoundUnit(u) {}
11  virtual ~PowerUnit() {}
12 
13  static bool IsValidUnit(const std::string& unit);
14  static const PowerUnit& GetCompoundUnit(const std::string& unit);
15 
16  static const PowerUnit W;
17  static const PowerUnit kcal_Per_s;
18  static const PowerUnit kcal_Per_hr;
19  static const PowerUnit kcal_Per_day;
20  static const PowerUnit J_Per_s;
21  static const PowerUnit BTU_Per_hr;
22 };
23 
24 class CDM_DECL SEScalarPower : public SEScalarQuantity<PowerUnit>
25 {
26 public:
28  virtual ~SEScalarPower() {}
29 };
virtual ~SEScalarPower()
Definition: SEScalarPower.h:28
Definition: SEScalar.h:127
static const PowerUnit kcal_Per_s
Definition: SEScalarPower.h:17
virtual ~PowerUnit()
Definition: SEScalarPower.h:11
static const PowerUnit BTU_Per_hr
Definition: SEScalarPower.h:21
static const PowerUnit kcal_Per_hr
Definition: SEScalarPower.h:18
Definition: SEScalarPower.h:24
Definition: SEScalarPower.h:7
PowerUnit(const std::string &u)
Definition: SEScalarPower.h:10
static const PowerUnit kcal_Per_day
Definition: SEScalarPower.h:19
static const PowerUnit W
Definition: SEScalarPower.h:16
Definition: CompoundUnit.h:39
SEScalarPower()
Definition: SEScalarPower.h:27
static const PowerUnit J_Per_s
Definition: SEScalarPower.h:20