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