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