Go to the documentation of this file.
28 #ifndef CASA_MVANGLE_H
29 #define CASA_MVANGLE_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Quanta/Quantum.h>
35 #include <casacore/casa/iosfwd.h>
const MVAngle & operator()(const MVAngle &norm)
Normalisation between norm-pi and norm+pi.
MVAngle coAngle() const
Make co-angle (e.g.
void print(ostream &oss, const MVAngle::Format &form) const
T norm(const TableVector< T > &tv)
MVAngle()
Default constructor: generate a zero value.
const MVAngle & binorm(Double norm)
Normalisation between pi*norm and pi*norm + pi.
void print(ostream &oss, const MVAngle::Format &form, Bool loc) const
MVAngle(const MVAngle &other)
Copy constructor.
static Double timeZone()
Get time zone offset (in days)
String string(uInt intyp, uInt inprec) const
describes any valid unit as a factor and a dimenion of SI units
static Bool read(Quantity &res, const String &in, Bool chk, Bool throwExcp)
String string(MVAngle::formatTypes intyp, uInt inprec=0) const
AipsIO & operator>>(AipsIO &os, Record &rec)
String string() const
Output data Warning: The first function below is thread-unsafe because it uses the result of the set...
static Format setFormat(uInt intyp, uInt inprec)
static Bool read(Quantity &res, const String &in, Bool chk=True)
Make res angle Quantity from string in angle/time-like format.
static functions and enumerations
const MVAngle & operator()(Double norm)
Normalisation between 2pi*norm and 2pi*norm + 2pi.
static MVAngle::Format interimFormat
Temporary format.
Class to handle angle type conversions and I/O.
static Format setFormat(uInt inprec=0)
istream & operator>>(istream &is, MVAngle &meas)
MVAngle & operator=(const MVAngle &other)
Copy assignment.
static Bool handleReadError(MUString &in, Bool throwExcp)
Handle a read error.
static Bool unitString(UnitVal &uv, String &us, MUString &in)
Check if String unit.
Double radian() const
Get value in given unit.
MVAngle(Double d)
Constructor from Double.
static Format setFormat(const Format &form)
static Format getFormat()
Get default format.
static Format setFormat(MVAngle::formatTypes intyp, uInt inprec=0)
Set default format Warning: It is thread-unsafe to print using the setFormat functions because they ...
this file contains all the compiler specific defines
ostream & operator<<(ostream &os, const MVAngle::Format &form)
Set a temporary format (thread-unsafe).
String string(uInt inprec) const
Pointed String class to aid analysis of quantity strings.
friend ostream & operator<<(ostream &os, const MVAngle::Format &form)
Set a temporary format.
static Bool read(Quantity &res, MUString &in, Bool chk, Bool throwExcp)
friend ostream & operator<<(ostream &os, const MVAngle &meas)
Output an angle.
String: the storage and methods of handling collections of characters.
static MVAngle::formatTypes giveMe(const String &in)
Get code belonging to string.
friend istream & operator>>(istream &is, MVAngle &meas)
Input an angle.
static Bool read(Quantity &res, MUString &in, Bool chk=True)
bool Bool
Define the standard types used by Casacore.
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
Quantity get(const Unit &inunit) const
static MVAngle::Format defaultFormat
Default format.
ostream & operator<<(ostream &os, const MVAngle &meas)
const MVAngle & operator()()
Normalisation between -180 and +180 degrees (-pi and +pi)
MVAngle(const Quantity &other)
Constructor from Quantum : value can be an angle or time.
String string(const MVAngle::Format &form) const