Quantity( Double value, String unit); // or: Unit unit Quantum<Type> ( Type value, String unit) // or: Unit unitSee Quantum for details.
Destructor
Assignment (copy)
Get units of QBase
Return the string representation of the current units attached to QBase
Re-specify parts of a QBase
Set new unit, copied from specified QBase, without changing value
Re-specify parts of a QBase
Check for conformal matching units (e.g. dam and Mpc)
Using units specified in QBase
Check for conformal matching units (e.g. dam and Mpc)
Get a copy of Quantum
const String &getUnit() const
void setUnit(const QBase &other)
void setUnit(const Unit &s)
Bool isConform(const QBase &other) const
Bool isConform(const Unit &s) const
virtual QBase *clone() const = 0
virtual const Unit &getFullUnit() const = 0
Get the unit attached to the Quantum (use getUnit() if only interested in
the String part of the unit)
virtual void print(ostream &os) const = 0
Print a Quantum
virtual uInt type() const = 0
Get the type (== Register() of derived Quantum (faster than Strings)
All should have:
static uInt myType();
Global functions (source)
Interface
Description
Member Description
ostream &operator<<(ostream &os, const QBase &meas)
Output declaration