28 #ifndef CASA_UNITDIM_H
29 #define CASA_UNITDIM_H
99 enum Dim {
Dm=0,
Dkg,
Ds,
DA,
DK,
Dcd,
Dmol,
Drad,
Dsr,
Dnon,
Dnumber};
102 #define UNITDIM_DLNUMBER 3
Bool operator!=(const UnitDim &other) const
Compare for unequal dimensions.
UnitDim pow(Int p)
Raise all SI defining units to an integer power.
describes a unit in basic SI unit dimensions
UnitDim operator/(const UnitDim &other) const
UnitDim & operator*=(const UnitDim &other)
Operators to combine unit dimensions.
describes any valid unit as a factor and a dimenion of SI units
static const String & dimFull(uInt which)
Get the full name for the specified dimension.
UnitDim & operator/=(const UnitDim &other)
Division subtracts the unit dimensions of all SI units.
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
UnitDim operator*(const UnitDim &other) const
Dim
Enumeration of the order and number of the defining SI units.
contains all simple known physical units
UnitDim(Int pos)
Construct a unit dimension with a one in the indicated position (as Dim enumerator) and zeroes in all...
UnitDim & operator=(const UnitDim &other)
Assignment (copy semantics)
#define UNITDIM_DLNUMBER
Constants Number of Longs to cater for 9 bytes.
friend ostream & operator<<(ostream &os, const UnitDim &du)
Output the SI dimensions (e.g.
bool Bool
Define the standard types used by Casacore.
UnitDim()
Construct a unit with zero dimension in all SI units.
Long unitLong[UNITDIM_DLNUMBER]
1-byte vector to contain the dimensions of the defining SI units (using same storage as Long vector f...
String: the storage and methods of handling collections of characters.
Bool operator==(const UnitDim &other) const
Compare dimension of units.
static const String & dimName(uInt which)
Get the tag for specified dimension.