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