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