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