29 #ifndef MEASURES_MEASREF_H
30 #define MEASURES_MEASREF_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/measures/Measures/MRBase.h>
35 #include <casacore/measures/Measures/MeasFrame.h>
36 #include <casacore/casa/iosfwd.h>
37 #include <casacore/casa/Utilities/CountedPtr.h>
43 template <
class Ms>
class MeasRef;
174 virtual void print(ostream &os)
const;
212 #ifndef CASACORE_NO_AUTO_TEMPLATES
213 #include <casacore/measures/Measures/MeasRef.tcc>
Referenced counted pointer for constant data.
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.
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.
Bool operator!=(const MeasRef< Ms > &other) const
Check if unequal MeasRef.
static const MeasFrame & frameRadialVelocity(MRBase &ref1, MRBase &ref2)
static const MeasFrame & framePosition(MRBase &ref1, MRBase &ref2)
Return the first frame which has specified information.
MeasRef(const uInt tp)
Construct a reference with specified type, offset and Frame.
MeasRef & operator=(const MeasRef< Ms > &other)
Copy assignment.
virtual void print(ostream &os) const
Print a Measure.
static const MeasFrame & frameEpoch(MRBase &ref1, MRBase &ref2)
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 & frameComet(MRBase &ref1, MRBase &ref2)
MeasRef(const uInt tp, const MeasFrame &mf)
virtual const Measure * offset() const
Return the offset (or 0)
MeasRef copy()
Copy an instance.
virtual MeasFrame & getFrame()
Return the frame of reference.
CountedPtr< RefRep > rep_p
static const MeasFrame & frameDirection(MRBase &ref1, MRBase &ref2)
virtual void setType(uInt tp)
Set the type.
virtual Bool empty() const
Check if empty reference.
static const String & showMe()
Check the type of Measure the reference can be used for.
Bool operator==(const MeasRef< Ms > &other) const
Check if same MeasRef.
virtual void set(const MeasFrame &mf)
Set a new frame.
MeasRef(const MeasRef< Ms > &other)
Copy constructor.
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.