28 #ifndef MEASURES_MEASUREHOLDER_H
29 #define MEASURES_MEASUREHOLDER_H
46 class MRadialVelocity;
Bool putType(String &error, RecordInterface &out) const
Aid for to/from Record, String and Type.
A Measure: astronomical direction.
Bool fromType(String &error, const RecordInterface &in)
Bool isMRadialVelocity() const
Bool isMDirection() const
A Measure: position on Earth.
const Muvw & asMuvw() const
virtual const String & ident() const
Get identification of record.
MeasValue * getMV(uInt pos) const
Get a pointer to a MeasValue (or 0)
Bool isMFrequency() const
MeasureHolder()
Creates an empty holder.
const Measure & asMeasure() const
Get a specific Measure from the holder (with lifetime as long as holder exists).
A Measure: Doppler shift.
PtrHolder< Measure > hold_p
Pointer to a Measure.
const MFrequency & asMFrequency() const
virtual Bool toRecord(String &error, RecordInterface &out) const
Create a record from a Measure.
Physical quantities within reference frame.
virtual Bool fromString(String &error, const String &in)
Initialise the class from a String representation.
A Measure: radial velocity.
Hold and delete pointers not deleted by object destructors.
const MBaseline & asMBaseline() const
const MRadialVelocity & asMRadialVelocity() const
A Measure: instant in time.
A Measure: wave characteristics.
Bool isEmpty() const
Check the the MeasureHolder holds the specified Measure type.
A Measure: Magnetic field on Earth.
Base class for values in a Measure.
const MEpoch & asMEpoch() const
const MDirection & asMDirection() const
MeasureHolder & operator=(const MeasureHolder &other)
Assignment (copy semantics)
Bool setMV(uInt pos, const MeasValue &in)
Set a measvalue at position pos (False if illegal pos)
A holder for Measures to enable record conversions.
const MPosition & asMPosition() const
bool Bool
Define the standard types used by Casacore.
Bool convertmv_p
Should the mvhold_p be converted into record?
Block< MeasValue * > mvhold_p
Block of pointers to measure values to make a faster interface.
Bool writeMV() const
Do we write MeasValues to record?
void makeMV(uInt n)
Make a block of n MeasValues.
const MEarthMagnetic & asMEarthMagnetic() const
Bool isMEarthMagnetic() const
Bool getType(String &error, const RecordInterface &in)
String: the storage and methods of handling collections of characters.
Bool toType(String &error, RecordInterface &out) const
Create a default Measure or a record with only a type from a Measure.
Abstract base class for Record classes.
uInt nelements() const
Get number of MeasValue pointers in block.
void createMV(uInt n)
Make a MeasValue block of pointers of length n.
const MDoppler & asMDoppler() const
A Measure: Baseline on Earth.
virtual Bool fromRecord(String &error, const RecordInterface &in)
Create a Measure from a record.