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

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.