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