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{
47public:
49 virtual ~MeasuresProxy();
50 Record measure(const Record& rec, const String& str, const Record& form);
51 Bool doframe(const Record& rec);
52 String dirshow(const Record& rec);
53 Record doptorv(const Record& rec, const String& str);
54 Record doptofreq(const Record& rec, const String& str,
55 const Quantity& form);
56 Record todop(const Record& rec, const Quantity& form);
57 Record torest(const Record& rec, const Record& form);
62 Record source(const String& str);
63 Record line(const String& str);
64 Record alltyp(const Record& rec);
65 Quantum<Vector<Double> > posangle(const Record& lrec, const Record& rrec);
66 Quantum<Vector<Double> > separation(const Record& lrec, const Record& rrec);
67 Record uvw(const Record& mhrec);
68 Record expand(const Record& mhrec);
69
70private:
73 Bool doFrame(const String &in);
75 const MeasureHolder &in, const String &outref,
76 const Record &off);
79 const MeasureHolder &in);
81 Vector<Double> &xyz,
82 const MeasureHolder &in);
85
86 static String getMeasureType(const Record &in);
87
88 //# Data
89 // The globally used MeasFrame for this DO
91 // The current comet class
93
94};
95
96} //# NAMESPACE CASACORE - END
97
98#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:223
this file contains all the compiler specific defines
Definition mainpage.dox:28
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40