casacore
|
#include <MeasBase.h>
Public Member Functions | |
MeasBase () | |
Tip: In the following constructors and other functions, all MeasRef can be replaced with simple Measure::TYPE where no offsets or frames are needed in the reference; For reasons of compiler limitations the formal arguments had to be specified as uInt rather than the Measure enums that should be used as actual arguments;Default constructor More... | |
MeasBase (const MeasBase< Mv, Mr > &other) | |
Copy constructor. More... | |
MeasBase< Mv, Mr > & | operator= (const MeasBase< Mv, Mr > &other) |
Copy assignment. More... | |
MeasBase (const Mv &dt, const Mr &rf) | |
Create from data and reference. More... | |
MeasBase (const Mv &dt, uInt rf) | |
MeasBase (const Quantity &dt, const Mr &rf) | |
MeasBase (const Quantity &dt, uInt rf) | |
MeasBase (const Measure *dt) | |
MeasBase (const Mr &rf) | |
MeasBase (const uInt rf) | |
virtual | ~MeasBase () |
virtual Bool | areYou (const String &tp) const |
Check the type of derived entity. More... | |
virtual void | assured (const String &tp) const |
Assert that we are the correct type. More... | |
void | set (const Mv &dt) |
Refill the specified entities. More... | |
void | set (const Mr &rf) |
void | set (const Mv &dt, const Mr &rf) |
void | set (const Unit &inunit) |
virtual void | set (const MeasValue &dt) |
Each Measure should have the following set functions (with appropiate MVs and Ref): More... | |
virtual Bool | putValue (const Vector< Quantum< Double > > &in) |
Mr | getRef () const |
Get reference. More... | |
const Mv & | getValue () const |
Get Measure data. More... | |
const Unit & | getUnit () const |
Get Unit. More... | |
virtual MRBase * | getRefPtr () const |
Get reference pointer. More... | |
virtual const MeasValue * | getData () const |
Get pointer to data. More... | |
virtual void | print (std::ostream &os) const |
Print a Measure. More... | |
![]() | |
virtual | ~Measure () |
Destructor. More... | |
virtual Bool | setOffset (const Measure &in)=0 |
Set the offset in the reference (False if non-matching Measure) More... | |
virtual const String & | tellMe () const =0 |
Tell me your Measure type (e.g. More... | |
virtual String | getRefString () const =0 |
Each Measure should have the following static methods to give its name (e.g. More... | |
virtual Bool | isModel () const |
Tell me if you are a pure model (e.g. More... | |
void | dummy_giveMe () const |
Each derived class should have a string-to-code translation routine for the reference type. More... | |
virtual Bool | setRefString (const String &in)=0 |
Set the reference type to the specified String. More... | |
virtual const String & | getDefaultType () const =0 |
Get the default reference type. More... | |
virtual const String * | allTypes (Int &nall, Int &nextra, const uInt *&typ) const |
Get a list of all known reference codes. More... | |
virtual void | checkTypes () const =0 |
Check if all internal tables of types (both enum and String) are complete and correct. More... | |
void | dummy_getRef () const |
Each class should have a function to return its reference: More... | |
void | dummy_getValue () const |
Each derived class should be able to get its internal value and have: More... | |
virtual Measure * | clone () const =0 |
Create a copy. More... | |
Protected Attributes | |
Mv | data |
The measure value (e.g. More... | |
Mr | ref |
Reference frame data. More... | |
Unit | unit |
Possible input units. More... | |
Private Member Functions | |
void | clear () |
Error information MeasErr error;. More... | |
Additional Inherited Members | |
![]() | |
enum | Types { N_Types , DEFAULT } |
Each derived class should have a Types enumeration, specifying the recognised frame types. More... | |
typedef void * | Convert |
Each Measure should have typedefs of the form: More... | |
![]() | |
static uInt | giveMe (const String &in, Int N_name, const String tname[]) |
A general string checking routine to be used in derived measures. More... | |
Base class for all measures
Internal
Measure and Base
MeasBase forms derived Measure class for all actual measures
To have most work in single routine
Definition at line 73 of file MeasBase.h.
casacore::MeasBase< Mv, Mr >::MeasBase | ( | ) |
Tip: In the following constructors and other functions, all MeasRef can be replaced with simple Measure::TYPE
where no offsets or frames are needed in the reference; For reasons of compiler limitations the formal arguments had to be specified as uInt rather than the Measure enums that should be used as actual arguments;
Default constructor
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const MeasBase< Mv, Mr > & | other | ) |
Copy constructor.
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const Mv & | dt, |
const Mr & | rf | ||
) |
Create from data and reference.
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const Mv & | dt, |
uInt | rf | ||
) |
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const Quantity & | dt, |
const Mr & | rf | ||
) |
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const Quantity & | dt, |
uInt | rf | ||
) |
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const Measure * | dt | ) |
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const Mr & | rf | ) |
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const uInt | rf | ) |
|
virtual |
|
virtual |
Check the type of derived entity.
Implements casacore::Measure.
|
virtual |
|
privatevirtual |
|
virtual |
Get pointer to data.
Implements casacore::Measure.
Mr casacore::MeasBase< Mv, Mr >::getRef | ( | ) | const |
Get reference.
|
virtual |
Get reference pointer.
Implements casacore::Measure.
|
virtual |
Get Unit.
Implements casacore::Measure.
const Mv& casacore::MeasBase< Mv, Mr >::getValue | ( | ) | const |
Get Measure data.
MeasBase<Mv,Mr>& casacore::MeasBase< Mv, Mr >::operator= | ( | const MeasBase< Mv, Mr > & | other | ) |
Copy assignment.
|
virtual |
Print a Measure.
Implements casacore::Measure.
|
virtual |
Implements casacore::Measure.
|
virtual |
Each Measure should have the following set functions (with appropiate MVs and Ref):
Implements casacore::Measure.
void casacore::MeasBase< Mv, Mr >::set | ( | const Mr & | rf | ) |
void casacore::MeasBase< Mv, Mr >::set | ( | const Mv & | dt | ) |
Refill the specified entities.
void casacore::MeasBase< Mv, Mr >::set | ( | const Mv & | dt, |
const Mr & | rf | ||
) |
void casacore::MeasBase< Mv, Mr >::set | ( | const Unit & | inunit | ) |
|
protected |
|
protected |
Reference frame data.
Definition at line 157 of file MeasBase.h.
|
protected |
Possible input units.
Definition at line 159 of file MeasBase.h.