26#ifndef MEASURES_MEASREF_H
27#define MEASURES_MEASREF_H
30#include <casacore/casa/aips.h>
31#include <casacore/measures/Measures/MRBase.h>
32#include <casacore/measures/Measures/MeasFrame.h>
33#include <casacore/casa/iosfwd.h>
40template <
class Ms>
class MeasRef;
171 virtual void print(ostream &os)
const;
209#ifndef CASACORE_NO_AUTO_TEMPLATES
210#include <casacore/measures/Measures/MeasRef.tcc>
RefRep()
Constructor Warning: Next one must be in-line for (some?) compilers
MeasFrame frame
Reference frame.
~RefRep()
Destructor Warning: Next one must be in-line for (some?) compilers
Measure * offmp
Pointer to main Measure, defining an offset.
Ms::Types type
The actual data.
static const MeasFrame & frameRadialVelocity(MRBase &ref1, MRBase &ref2)
std::shared_ptr< RefRep > rep_p
void set(const Measure &ep)
Set a new offset (for internal use only)
MeasRef(const uInt tp, const Ms &ep)
MeasRef()
Construct an empty MeasRef.
static const MeasFrame & frameComet(MRBase &ref1, MRBase &ref2)
Bool operator!=(const MeasRef< Ms > &other) const
Check if unequal MeasRef.
static const MeasFrame & frameEpoch(MRBase &ref1, MRBase &ref2)
MeasRef(const uInt tp)
Construct a reference with specified type, offset and Frame.
virtual void print(ostream &os) const
Print a Measure.
static const MeasFrame & framePosition(MRBase &ref1, MRBase &ref2)
Return the first frame which has specified information.
void set(const Ms &ep)
Set a new offset.
virtual uInt getType() const
Return the type of the reference Caution: the following should really be (and should be interpreted ...
virtual void set(uInt tp)
static const MeasFrame & frameDirection(MRBase &ref1, MRBase &ref2)
MeasRef(const uInt tp, const MeasFrame &mf)
MeasRef copy()
Copy an instance.
MeasRef & operator=(const MeasRef< Ms > &other)
Copy assignment.
virtual void setType(uInt tp)
Set the type.
static const String & showMe()
Check the type of Measure the reference can be used for.
virtual Bool empty() const
Check if empty reference.
Bool operator==(const MeasRef< Ms > &other) const
Check if same MeasRef.
virtual const Measure * offset() const
Return the offset (or 0)
virtual void set(const MeasFrame &mf)
Set a new frame.
MeasRef(const MeasRef< Ms > &other)
Copy constructor.
virtual MeasFrame & getFrame()
Return the frame of reference.
void create()
Create an instance of MeasRef.
MeasRef(const uInt tp, const MeasFrame &mf, const Ms &ep)
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.