casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Pressure Class Reference

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...
 
Pressureoperator= (const Pressure &rhs)
 
Pressureoperator= (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_
 

Detailed Description

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.

Constructor & Destructor Documentation

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 Pressure::~Pressure ( )
virtual

Destructor.

Member Function Documentation

double Pressure::get ( ) const
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.

bool Pressure::operator!= ( const Pressure rhs) const
inline

Definition at line 80 of file ATMPressure.h.

References get(), and valueIS_.

Pressure Pressure::operator* ( double  scf)
inline

Definition at line 67 of file ATMPressure.h.

References Pressure(), and valueIS_.

Pressure Pressure::operator* ( float  scf)
inline

Definition at line 68 of file ATMPressure.h.

References Pressure(), and valueIS_.

Pressure Pressure::operator* ( int  scf)
inline

Definition at line 69 of file ATMPressure.h.

References Pressure(), and valueIS_.

Pressure Pressure::operator* ( unsigned int  scf)
inline

Definition at line 70 of file ATMPressure.h.

References Pressure(), and valueIS_.

Pressure Pressure::operator+ ( const Pressure rhs)
inline

Definition at line 65 of file ATMPressure.h.

References get(), Pressure(), and valueIS_.

Pressure Pressure::operator- ( const Pressure rhs)
inline

Definition at line 66 of file ATMPressure.h.

References get(), Pressure(), and valueIS_.

Pressure Pressure::operator/ ( double  scf)
inline

Definition at line 71 of file ATMPressure.h.

References Pressure(), and valueIS_.

Pressure Pressure::operator/ ( float  scf)
inline

Definition at line 72 of file ATMPressure.h.

References Pressure(), and valueIS_.

Pressure Pressure::operator/ ( int  scf)
inline

Definition at line 73 of file ATMPressure.h.

References Pressure(), and valueIS_.

Pressure Pressure::operator/ ( unsigned int  scf)
inline

Definition at line 74 of file ATMPressure.h.

References Pressure(), and valueIS_.

bool Pressure::operator< ( const Pressure rhs) const
inline

Definition at line 75 of file ATMPressure.h.

References get(), and valueIS_.

bool Pressure::operator<= ( const Pressure rhs) const
inline

Definition at line 77 of file ATMPressure.h.

References get(), and valueIS_.

Pressure& Pressure::operator= ( const Pressure rhs)
inline

Definition at line 63 of file ATMPressure.h.

References valueIS_.

Pressure& Pressure::operator= ( double  rhs)
inline

Definition at line 64 of file ATMPressure.h.

References valueIS_.

bool Pressure::operator== ( const Pressure rhs) const
inline

Definition at line 79 of file ATMPressure.h.

References get(), and valueIS_.

bool Pressure::operator> ( const Pressure rhs) const
inline

Definition at line 76 of file ATMPressure.h.

References get(), and valueIS_.

bool Pressure::operator>= ( const Pressure rhs) const
inline

Definition at line 78 of file ATMPressure.h.

References get(), and valueIS_.

Member Data Documentation

double Pressure::valueIS_
private

The documentation for this class was generated from the following file: