casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PlotMSCalibration.h
Go to the documentation of this file.
1 //# PlotMSCalibration.h: (On The Fly) Calibration parameters.
2 //# Copyright (C) 2015
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 PLOTMSCALIBRATION_H_
28 #define PLOTMSCALIBRATION_H_
29 
31 #include <casa/Containers/Record.h>
32 
33 namespace casa {
34 
35 // Specifies calibration parameters for an MS.
37 public:
38  // Constructor, which sets default values.
40 
41  // Copy constructor
43 
44  // Destructor.
46 
47 
48  // Converts this object to/from a record. Each field will have a key that
49  // is its enum name
50  // <group>
51  void fromRecord(const casacore::RecordInterface& record);
52  casacore::Record toRecord() const;
53  // </group>
54 
55 
56  // Convenience methods for returning the standard field values.
57  // <group>
58  casacore::Bool useCallib() const { return itsCallibUse_; };
60 
61  /*
62  // Returns parsed cal library as a Record
63  casacore::Record callibRec() const;
64  */
65  // </group>
66 
67 
68  // Convenience methods for setting the standard field values.
69  // <group>
71  void setCalLibrary(const casacore::String& callib) { itsCalLibrary_ = callib;}
72  // </group>
73 
74 
75  // Equality operators.
76  // <group>
77  bool operator==(const PlotMSCalibration& other) const;
78  bool operator!=(const PlotMSCalibration& other) const {
79  return !(operator==(other)); }
80  // </group>
81 
82  // Copy operator.
84  // Print out a summary
85  casacore::String summary() const;
86 
87 private:
90  //casacore::Record itsCallibRec_;
91 
92  // Sets the default values.
93  void setDefaults();
94 
95 };
96 
97 }
98 
99 #endif /* PLOTMSCALIBRATION_H_ */
~PlotMSCalibration()
Destructor.
casacore::String summary() const
Print out a summary.
StatsData< AccumType > copy(const StatsData< AccumType > &stats)
PlotMSCalibration()
Constructor, which sets default values.
void setDefaults()
casacore::Record itsCallibRec_;
casacore::String itsCalLibrary_
casacore::String calLibrary() const
PlotMSCalibration & operator=(const PlotMSCalibration &copy)
Copy operator.
bool operator!=(const PlotMSCalibration &other) const
void fromRecord(const casacore::RecordInterface &record)
Converts this object to/from a record.
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::Bool itsCallibUse_
String: the storage and methods of handling collections of characters.
Definition: String.h:223
void setCalLibrary(const casacore::String &callib)
Specifies calibration parameters for an MS.
Abstract base class for Record classes.
*void setUseCallib(const casacore::Bool use)
Convenience methods for setting the standard field values.
casacore::Bool useCallib() const
Convenience methods for returning the standard field values.
casacore::Record toRecord() const
bool operator==(const PlotMSCalibration &other) const
Equality operators.