casa
5.7.0-16
|
Defines pressure with units. More...
#include <ATMPressure.h>
Public Member Functions | |
Pressure () | |
Default constructor. More... | |
Pressure (double pressure) | |
A full constructor: Pressure value in default SI units (Pa) More... | |
Pressure (double pressure, const string &units) | |
A full constructor: Pressure value + units. More... | |
virtual | ~Pressure () |
Destructor. More... | |
double | get () const |
Accessor to get the value in SI units (Pa) More... | |
double | get (const string &units) const |
Accessor to get the value in the following (implemented) units: hPa [HPA] [hpa], bar [BAR], mb [MB], mbar [MBAR], atm [ATM]. More... | |
Pressure & | operator= (const Pressure &rhs) |
Pressure & | operator= (double rhs) |
Pressure | operator+ (const Pressure &rhs) |
Pressure | operator- (const Pressure &rhs) |
Pressure | operator* (double scf) |
Pressure | operator* (float scf) |
Pressure | operator* (int scf) |
Pressure | operator* (unsigned int scf) |
Pressure | operator/ (double scf) |
Pressure | operator/ (float scf) |
Pressure | operator/ (int scf) |
Pressure | operator/ (unsigned int scf) |
bool | operator< (const Pressure &rhs) const |
bool | operator> (const Pressure &rhs) const |
bool | operator<= (const Pressure &rhs) const |
bool | operator>= (const Pressure &rhs) const |
bool | operator== (const Pressure &rhs) const |
bool | operator!= (const Pressure &rhs) const |
Private Attributes | |
double | valueIS_ |
Defines pressure with units.
This class defines physical parameters having units of Pressure. Default is Pa (International System) but the ATM library uses mb (hPa).
Definition at line 43 of file ATMPressure.h.
Pressure::Pressure | ( | ) |
Default constructor.
Referenced by operator*(), operator+(), operator-(), and operator/().
Pressure::Pressure | ( | double | pressure | ) |
A full constructor: Pressure value in default SI units (Pa)
Pressure::Pressure | ( | double | pressure, |
const string & | units | ||
) |
A full constructor: Pressure value + units.
Valid units are hPa [HPA] [hpa], bar [BAR], mb [MB], mbar [MBAR], atm [ATM].
|
virtual |
Destructor.
|
inline |
Accessor to get the value in SI units (Pa)
Definition at line 58 of file ATMPressure.h.
References valueIS_.
Referenced by operator!=(), operator+(), operator-(), operator<(), operator<=(), operator==(), operator>(), operator>=(), and AtmProfile::setLayerPressure().
double Pressure::get | ( | const string & | units | ) | const |
Accessor to get the value in the following (implemented) units: hPa [HPA] [hpa], bar [BAR], mb [MB], mbar [MBAR], atm [ATM].
If none of these implemented units is given, the SI value will be returned.
|
inline |
Definition at line 80 of file ATMPressure.h.
|
inline |
Definition at line 67 of file ATMPressure.h.
References Pressure(), and valueIS_.
|
inline |
Definition at line 68 of file ATMPressure.h.
References Pressure(), and valueIS_.
|
inline |
Definition at line 69 of file ATMPressure.h.
References Pressure(), and valueIS_.
|
inline |
Definition at line 70 of file ATMPressure.h.
References Pressure(), and valueIS_.
Definition at line 65 of file ATMPressure.h.
References get(), Pressure(), and valueIS_.
Definition at line 66 of file ATMPressure.h.
References get(), Pressure(), and valueIS_.
|
inline |
Definition at line 71 of file ATMPressure.h.
References Pressure(), and valueIS_.
|
inline |
Definition at line 72 of file ATMPressure.h.
References Pressure(), and valueIS_.
|
inline |
Definition at line 73 of file ATMPressure.h.
References Pressure(), and valueIS_.
|
inline |
Definition at line 74 of file ATMPressure.h.
References Pressure(), and valueIS_.
|
inline |
Definition at line 75 of file ATMPressure.h.
|
inline |
Definition at line 77 of file ATMPressure.h.
Definition at line 63 of file ATMPressure.h.
References valueIS_.
|
inline |
Definition at line 64 of file ATMPressure.h.
References valueIS_.
|
inline |
Definition at line 79 of file ATMPressure.h.
|
inline |
Definition at line 76 of file ATMPressure.h.
|
inline |
Definition at line 78 of file ATMPressure.h.
|
private |
Definition at line 83 of file ATMPressure.h.
Referenced by get(), operator!=(), operator*(), operator+(), operator-(), operator/(), operator<(), operator<=(), operator=(), operator==(), operator>(), and operator>=().