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>
static functions and enumerations
String string(const MVAngle::Format &form) const
static Bool read(Quantity &res, MUString &in, Bool chk, Bool throwExcp)
String string(uInt intyp, uInt inprec) const
String string(uInt inprec) const
String string() const
Output data Warning: The first function below is thread-unsafe because it uses the result of the set...
const MVAngle & binorm(Double norm)
Normalisation between pi*norm and pi*norm + pi.
void print(ostream &oss, const MVAngle::Format &form) const
MVAngle(const MVAngle &other)
Copy constructor.
friend ostream & operator<<(ostream &os, const MVAngle::Format &form)
Set a temporary 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 ...
const MVAngle & operator()(Double norm)
Normalisation between 2pi*norm and 2pi*norm + 2pi.
static Double timeZone()
Get time zone offset (in days)
static Format getFormat()
Get default format.
const MVAngle & operator()(const MVAngle &norm)
Normalisation between norm-pi and norm+pi.
const MVAngle & operator()()
Normalisation between -180 and +180 degrees (-pi and +pi)
static Bool read(Quantity &res, const String &in, Bool chk=True)
Make res angle Quantity from string in angle/time-like format.
MVAngle(const Quantity &other)
Constructor from Quantum : value can be an angle or time.
MVAngle(Double d)
Constructor from Double.
static Bool read(Quantity &res, const String &in, Bool chk, Bool throwExcp)
MVAngle()
Default constructor: generate a zero value.
MVAngle & operator=(const MVAngle &other)
Copy assignment.
MVAngle coAngle() const
Make co-angle (e.g.
static Bool unitString(UnitVal &uv, String &us, MUString &in)
Check if String unit.
static MVAngle::formatTypes giveMe(const String &in)
Get code belonging to string.
static MVAngle::Format interimFormat
Temporary format.
friend istream & operator>>(istream &is, MVAngle &meas)
Input an angle.
static MVAngle::Format defaultFormat
Default format.
static Format setFormat(uInt intyp, uInt inprec)
void print(ostream &oss, const MVAngle::Format &form, Bool loc) const
Double radian() const
Get value in given unit.
Quantity get(const Unit &inunit) const
static Format setFormat(const Format &form)
String string(MVAngle::formatTypes intyp, uInt inprec=0) const
static Bool read(Quantity &res, MUString &in, Bool chk=True)
static Format setFormat(uInt inprec=0)
friend ostream & operator<<(ostream &os, const MVAngle &meas)
Output an angle.
static Bool handleReadError(MUString &in, Bool throwExcp)
Handle a read error.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
T norm(const TableVector< T > &tv)
bool Bool
Define the standard types used by Casacore.
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
AipsIO & operator>>(AipsIO &os, Record &rec)