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