<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
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 
7 class CDM_DECL PowerUnit : public CCompoundUnit
8 {
9 public:
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 
28 class CDM_DECL SEScalarPower : public SEScalarQuantity<PowerUnit>
29 {
30 public:
32  virtual ~SEScalarPower() {}
33 };
CCompoundUnit & operator=(const CCompoundUnit &rhs)
Definition: CompoundUnit.h:132
virtual ~SEScalarPower()
Definition: SEScalarPower.h:32
Definition: SEScalar.h:206
static const PowerUnit kcal_Per_s
Definition: SEScalarPower.h:21
virtual ~PowerUnit()
Definition: SEScalarPower.h:11
static const PowerUnit BTU_Per_hr
Definition: SEScalarPower.h:25
static const PowerUnit kcal_Per_hr
Definition: SEScalarPower.h:22
Definition: SEScalarPower.h:28
Definition: SEScalarPower.h:7
PowerUnit(const std::string &u)
Definition: SEScalarPower.h:10
static const PowerUnit kcal_Per_day
Definition: SEScalarPower.h:23
static const PowerUnit W
Definition: SEScalarPower.h:20
Definition: CompoundUnit.h:39
SEScalarPower()
Definition: SEScalarPower.h:31
static const PowerUnit J_Per_s
Definition: SEScalarPower.h:24

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.