Go to the documentation of this file.
28 #ifndef MEASURES_MEASUREHOLDER_H
29 #define MEASURES_MEASUREHOLDER_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Utilities/PtrHolder.h>
34 #include <casacore/casa/Utilities/RecordTransformable.h>
35 #include <casacore/casa/Containers/Block.h>
46 class MRadialVelocity;
Bool isMDirection() const
virtual Bool toRecord(String &error, RecordInterface &out) const
Create a record from a Measure.
MeasureHolder(const Measure &in)
Create from a Measure (copy made)
const MDirection & asMDirection() const
PtrHolder< Measure > hold_p
Pointer to a Measure.
virtual Bool fromString(String &error, const String &in)
Initialise the class from a String representation.
Bool setMV(uInt pos, const MeasValue &in)
Set a measvalue at position pos (False if illegal pos)
Bool putType(String &error, RecordInterface &out) const
Aid for to/from Record, String and Type.
Bool fromType(String &error, const RecordInterface &in)
void createMV(uInt n)
Make a MeasValue block of pointers of length n.
void makeMV(uInt n)
Make a block of n MeasValues.
const MEpoch & asMEpoch() const
Bool isMFrequency() const
MeasureHolder & operator=(const MeasureHolder &other)
Assignment (copy semantics)
Bool convertmv_p
Should the mvhold_p be converted into record?
virtual void toRecord(RecordInterface &outRecord) const
This version throws an exception if the conversion cannot occur.
const Muvw & asMuvw() const
const MEarthMagnetic & asMEarthMagnetic() const
const MDoppler & asMDoppler() const
Bool isMRadialVelocity() const
Bool isEmpty() const
Check the the MeasureHolder holds the specified Measure type.
Bool writeMV() const
Do we write MeasValues to record?
Bool getType(String &error, const String &in)
MeasureHolder(const MeasureHolder &other)
Copy a holder (copy semantics)
Bool isMEarthMagnetic() const
this file contains all the compiler specific defines
MeasValue * getMV(uInt pos) const
Get a pointer to a MeasValue (or 0)
const MPosition & asMPosition() const
const MBaseline & asMBaseline() const
virtual const String & ident() const
Get identification of record.
MeasureHolder()
Creates an empty holder.
const MRadialVelocity & asMRadialVelocity() const
virtual Bool fromRecord(String &error, const RecordInterface &in)
Create a Measure from a record.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
const MFrequency & asMFrequency() const
Block< MeasValue * > mvhold_p
Block of pointers to measure values to make a faster interface.
Bool getType(String &error, const RecordInterface &in)
uInt nelements() const
Get number of MeasValue pointers in block.
Bool toType(String &error, RecordInterface &out) const
Create a default Measure or a record with only a type from a Measure.
const Measure & asMeasure() const
Get a specific Measure from the holder (with lifetime as long as holder exists).