27 #ifndef Pressure_CLASS
28 #define Pressure_CLASS
33 #include <asdmIDLTypesC.h>
95 Pressure(
const asdmIDLTypes::IDLPressure & idlPressure);
110 static double fromString(
const std::string& s);
117 static std::string
toString(
double);
149 static void toBin(
const std::vector<std::vector<std::vector<Pressure> > >& angle,
EndianOSStream& eoss);
294 operator std::string ()
const;
311 static std::string
unit();
412 inline Pressure::operator std::string ()
const {
426 asdmIDLTypes::IDLPressure tmp;
446 return std::string (
"hPa");
static Pressure getPressure(StringTokenizer &st)
Parse the next (string) token of a StringTokenizer into an angle.
bool operator<(const Pressure &x) const
Comparison operator.
Pressure & operator-=(const Pressure &x)
Operator decrement and assign.
Pressure & operator=(const Pressure &x)
An assignment operator Pressure = Pressure.
std::istream & operator>>(std::istream &, EntityId &)
Pressure & operator+=(const Pressure &x)
Operator increment and assign.
The StringTokenizer class is a translation into C++ of the Java class of the same name in Java's util...
bool operator>=(const Pressure &x) const
Comparison operator.
bool operator==(const Pressure &x) const
Comparision operator.
static std::vector< std::vector< std::vector< Pressure > > > from3DBin(EndianIStream &eis)
Read the binary representation of a vector of vector of vector of Pressure from an EndianIStream and ...
static Pressure fromBin(EndianIStream &eis)
Read the binary representation of an Pressure from a EndianIStream and use the read value to set an P...
Length operator*(double, const Length &)
Friend functions.
static std::vector< Pressure > from1DBin(EndianIStream &eis)
Read the binary representation of a vector of Pressure from an EndianIStream and use the read value t...
bool operator>(const Pressure &x) const
Comparison operator.
std::ostream & operator<<(std::ostream &, const EntityId &)
Friend functions.
bool operator!=(const Pressure &x) const
Comparison operator.
casacore::String toString(VisibilityProcessor::ProcessingType p)
std::string toStringI() const
Idem toString.
The Pressure class implements a quantity of pressure in hectopascals.
void toBin(EndianOSStream &eoss)
Write the binary representation of this to an EndianOSStream .
static std::vector< std::vector< Pressure > > from2DBin(EndianIStream &eis)
Read the binary representation of a vector of vector of Pressure from an EndianIStream and use the re...
friend std::istream & operator>>(std::istream &is, Pressure &x)
Overloading of >> to read an Pressure from an istream.
static std::string unit()
Returns the abbreviated name of the unit implicitely associated to any Pressure.
Pressure operator/(const double x) const
Division operator.
double get() const
Return the double precision value of the Pressure.
Defines pressure with units.
Pressure()
The nullary constructor (default).
asdmIDLTypes::IDLPressure toIDLPressure() const
Return the IDLPressure representation of the Pressure.
static double fromString(const std::string &s)
A static method equivalent to the constructor from a string.
friend Pressure operator*(double d, const Pressure &x)
Overloading of multiplication operator.
std::string toString() const
Converts into a string.
Pressure & operator/=(const double x)
Operator divide and assign.
Pressure operator+() const
Unary operator.
bool equals(const Pressure &x) const
Comparison method.
Pressure operator-() const
Unary operator.
Pressure & operator*=(const double x)
Operator multiply and assign.
virtual ~Pressure()
The destructor.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
bool operator<=(const Pressure &x) const
Comparison operator.
friend std::ostream & operator<<(std::ostream &os, const Pressure &x)
Overloading of << to output the value an Pressure on an ostream.
bool isZero() const
Comparison method.