casacore
Loading...
Searching...
No Matches
MeasuresProxy.h
Go to the documentation of this file.
1// # MeasuresProxy.h: This class gives a high-level interface to Measures
2// # Copyright (C) 2006
3// # Associated Universities, Inc. Washington DC, USA.
4// #
5// # This program is free software; you can redistribute it and/or modify it
6// # under the terms of the GNU General Public License as published by the Free
7// # Software Foundation; either version 2 of the License, or (at your option)
8// # any later version.
9// #
10// # This program is distributed in the hope that it will be useful, but WITHOUT
11// # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12// # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13// # more details.
14// #
15// # You should have received a copy of the GNU General Public License along
16// # with this program; if not, write to the Free Software Foundation, Inc.,
17// # 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18// #
19// # Correspondence concerning AIPS++ should be addressed as follows:
20// # Internet email: casa-feedback@nrao.edu.
21// # Postal address: AIPS++ Project Office
22// # National Radio Astronomy Observatory
23// # 520 Edgemont Road
24// # Charlottesville, VA 22903-2475 USA
25
26#ifndef MEASURES_MEASURESPROXY_H
27#define MEASURES_MEASURESPROXY_H
28
29// # Includes
30
31#include <casacore/casa/aips.h>
32#include <casacore/casa/Containers/Record.h>
33#include <casacore/casa/Arrays/Vector.h>
34#include <casacore/casa/Quanta/Quantum.h>
35#include <casacore/measures/Measures/Measure.h>
36#include <casacore/measures/Measures/MeasFrame.h>
37#include <casacore/casa/BasicSL/String.h>
38
39// # Forward declarations
40namespace casacore { // # NAMESPACE CASACORE - BEGIN
41class String;
42class MeasureHolder;
43class MeasComet;
44
46 public:
48 virtual ~MeasuresProxy();
49 Record measure(const Record& rec, const String& str, const Record& form);
50 Bool doframe(const Record& rec);
51 String dirshow(const Record& rec);
52 Record doptorv(const Record& rec, const String& str);
53 Record doptofreq(const Record& rec, const String& str, const Quantity& form);
54 Record todop(const Record& rec, const Quantity& form);
55 Record torest(const Record& rec, const Record& form);
60 Record source(const String& str);
61 Record line(const String& str);
62 Record alltyp(const Record& rec);
63 Quantum<Vector<Double>> posangle(const Record& lrec, const Record& rrec);
64 Quantum<Vector<Double>> separation(const Record& lrec, const Record& rrec);
65 Record uvw(const Record& mhrec);
66 Record expand(const Record& mhrec);
67
68 private:
71 Bool doFrame(const String& in);
72 Bool makeMeasure(String& error, MeasureHolder& out, const MeasureHolder& in, const String& outref,
73 const Record& off);
75 const MeasureHolder& in);
79
80 static String getMeasureType(const Record& in);
81
82 // # Data
83 // The globally used MeasFrame for this DO
85 // The current comet class
87};
88
89} // namespace casacore
90
91#endif
Quantum< Vector< Double > > separation(const Record &lrec, const Record &rrec)
Bool makeMeasure(String &error, MeasureHolder &out, const MeasureHolder &in, const String &outref, const Record &off)
Bool expandIt(String &error, MeasureHolder &out, Vector< Double > &xyz, const MeasureHolder &in)
Vector< String > obslist()
Bool doFrame(const MeasureHolder &in)
Record observatory(const String &str)
Record doptorv(const Record &rec, const String &str)
Bool doFrame(const String &in)
Record line(const String &str)
Record expand(const Record &mhrec)
Record todop(const Record &rec, const Quantity &form)
Record source(const String &str)
MeasComet * pcomet_p
The current comet class.
Quantum< Vector< Double > > posangle(const Record &lrec, const Record &rrec)
Record mh2rec(const MeasureHolder &mh)
Vector< String > linelist()
MeasureHolder rec2mh(const Record &rec)
Bool toUvw(String &error, MeasureHolder &out, Vector< Double > &xyz, Vector< Double > &dot, const MeasureHolder &in)
Record measure(const Record &rec, const String &str, const Record &form)
Record torest(const Record &rec, const Record &form)
Bool doframe(const Record &rec)
MeasFrame frame_p
The globally used MeasFrame for this DO.
Record doptofreq(const Record &rec, const String &str, const Quantity &form)
String dirshow(const Record &rec)
static String getMeasureType(const Record &in)
String vec2str(const Vector< String > &lst)
Record uvw(const Record &mhrec)
Record alltyp(const Record &rec)
Vector< String > srclist()
String: the storage and methods of handling collections of characters.
Definition String.h:355
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40
Quantum< Double > Quantity
Definition Quantum.h:40