casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSTransform.h
Go to the documentation of this file.
1 //# MSTransform.h: this defines MSTransform
2 //# Copyright (C) 2000,2001
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library 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 Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@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 //# $Id$
27 #ifndef MSTRANSFORM_H
28 #define MSTRANSFORM_H
29 
30 #include <iostream>
31 #include <vector>
32 
38 
39 namespace casa { //# NAMESPACE CASA - BEGIN
40 
41 // <summary>
42 // MSTransform: Apply transformations to data on the fly
43 // </summary>
44 
45 // <use visibility=global>
46 
47 // <reviewed reviewer="" date="" tests="" demos="">
48 // </reviewed>
49 
50 // <prerequisite>
51 // <li> <linkto class="MSTransformManager:description">MSTransformManager</linkto>
52 // </prerequisite>
53 //
54 // <synopsis>
55 // MSTransform .......
56 // </synopsis>
57 //
58 // <example>
59 // The following is a typical way of using this class and its methods ...
60 //
61 // <srcblock>
62 // MSTransform *mst = new MSTransform();
63 // </srcblock>
64 //
65 // Create a casacore::Record with the desired parameters. The parameters are: data selection parameters and any parameters
66 // for the transformations.
67 //
68 // <srcblock>
69 // casacore::Record params = Recod();
70 // params.define("spw", "0,1,2");
71 // params.define("combinespws",true);
72 // mst->configure(params);
73 // </srcblock>
74 //
75 // Open the casacore::MS, select the data and setup the output MS.
76 //
77 // <srcblock>
78 // mst->open();
79 // </srcblock>
80 //
81 // Run the tool and afterwards, destroy any instance of it by calling the destructor.
82 //
83 // <srcblock>
84 // mst->run();
85 //
86 // mst->done();
87 // </srcblock>
88 // </example>
89 //
90 // <motivation>
91 // To avoid multiple read/writes of the data....
92 // </motivation>
93 //
94 
95 
97 {
98 protected:
99 
101 
102  // variables used to initialize the MSTransformManager
105 
106 
107  // members to parse to selectData
121 
122  // Tells if tool is already configured at least once
124 
125 
126  // variables for initAgents
128 
129 public:
130  // default constructor
131  MSTransform();
132 
133  // destructor
134  ~MSTransform();
135 
136  // reset everything
137  void done();
138 
139  // set the defaults of the parameters
140 // casacore::Record & defaultOptions();
141 
142 
143  // configure the tool and parse the parameters
144  bool configure(casacore::Record config);
145 
146  // Open the casacore::MS and select the data
147  bool open();
148 
149  // Run the tool and write the flags to the MS
151 
152 
153 private:
154 
155  MSTransform(const MSTransform &) : mdh_p(nullptr) {};
156 
157  MSTransform& operator=(const MSTransform &) {return *this;};
158 
159 // casacore::String validateDataColumn(casacore::String datacol);
160 
161  // Sink used to store history
163 
164 
165 };
166 
167 
168 } //# NAMESPACE CASA - END
169 
170 #endif
171 
casacore::String correlation_p
Definition: MSTransform.h:113
casacore::String msname_p
variables used to initialize the MSTransformManager
Definition: MSTransform.h:103
MSTransform: Apply transformations to data on the fly.
Definition: MSTransform.h:96
MSTransform & operator=(const MSTransform &)
Definition: MSTransform.h:157
casacore::Bool isconfigured_p
Tells if tool is already configured at least once.
Definition: MSTransform.h:123
casacore::LogSink logSink_p
casacore::String validateDataColumn(casacore::String datacol);
Definition: MSTransform.h:157
casacore::String antenna_p
Definition: MSTransform.h:111
casacore::String spw_p
members to parse to selectData
Definition: MSTransform.h:108
ostream-like interface to creating log messages.
Definition: LogIO.h:167
MSTransform(const MSTransform &)
Definition: MSTransform.h:155
casacore::String feed_p
Definition: MSTransform.h:115
casacore::String field_p
Definition: MSTransform.h:110
casacore::String intent_p
Definition: MSTransform.h:114
casacore::LogIO log_p
Definition: MSTransform.h:100
bool configure(casacore::Record config)
set the defaults of the parameters casacore::Record &amp; defaultOptions();
casacore::String datacolumn_p
Definition: MSTransform.h:120
MSTransform()
default constructor
casacore::String uvrange_p
Definition: MSTransform.h:117
bool open()
Open the casacore::MS and select the data.
casacore::String scan_p
Definition: MSTransform.h:109
A hierarchical collection of named fields of various types.
Definition: Record.h:180
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::String observation_p
Definition: MSTransform.h:118
casacore::Record config_p
Definition: MSTransform.h:119
casacore::String timerange_p
Definition: MSTransform.h:112
casacore::String outputms_p
Definition: MSTransform.h:104
Distribute LogMessages to their destination(s)
Definition: LogSink.h:141
~MSTransform()
destructor
String: the storage and methods of handling collections of characters.
Definition: String.h:223
MSTransformManager * mdh_p
variables for initAgents
Definition: MSTransform.h:127
void done()
reset everything
casacore::String array_p
Definition: MSTransform.h:116
casacore::Record run()
Run the tool and write the flags to the MS.
MSTransformManager definition.