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