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